Categories | Question details Back To List | ||
How to chang lang on header First when in load i set header like this "mygrid.setHeader('Column A, Column B');" and i want to change "Column A, Column B" to "11111,22222" when i click on some button( No change page ) .I can do yes or no? ( if yes, please show me ) This my code. It no work <script> var mygrid; function doOnLoad(){ mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("Runtime/images/"); mygrid.setHeader("Column A, Column B"); mygrid.setInitWidths("100,*") mygrid.setColAlign("right,left") mygrid.setColTypes("ro,ed"); mygrid.setColSorting("int,str") mygrid.enablePaging(true,30,null,"pagingArea",true,"recinfoArea"); mygrid.init(); mygrid.setXMLAutoLoading("Runtime/XML/500.xml");//optional mygrid.loadXML("Runtime/XML/500.xml"); } function SWiSHlang(){ mygrid.setHeader("AAAAA A, BBBBB B"); } </script> <body onLoad="doOnLoad()"> <div id="gridbox" width="100%" height="250px" style="background-color:white;overflow:hidden"></div> <input type="button" name="Button" value="Button" onClick="Swlang();"> </body> Answer posted by Support on Jun 18, 2008 03:13 You can use setColumnLabel command to set new value of header function SWiSHlang(){ mygrid.setColumnLabel(0,"11111"); mygrid.setColumnLabel(1,"22222"); } |