Hi,
I am using the smartrendering for loading the grid. Now I would like to load the grid with specific row been selected. I am using
mygrid.showRow(“4”);
However I get this js error in firebug
“TypeError: this.getRowById(a) is null
…eader=function(a){this.noHeader=convertStringToBoolean(a)};this.showRow=function…”
in dhtmlxgrid.js file
Here is the code snippet.
mygrid = new dhtmlXGridObject(‘mygrid_container’);
mygrid.setImagePath(“codebase/imgs/”);
mygrid.setColAlign(“left,right,right”);
mygrid.setImagePath("/Images/");
mygrid.setColumnColor("#CCE2FE");
mygrid.splitAt(1);
mygrid.enablePaging(true, 100, null, “pagingArea”, true, ‘recinfoArea’);
mygrid.setSkin(“dhx_skyblue”);
mygrid.init();
mygrid.enableSmartRendering(true);
mygrid.loadXML(“SampleXML.xml”);
mygrid.showRow(“4”);
The xml that I am using has the format
1
FirstName LastName
123-456-7890
Marketing
M349
Location
United States
Yes
Please advice how to resolve this issue.
Thanks