Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 25, 2008 12:06
open dhtmlx forum
Smart Rendering

I'm using the enableSmartRendering(true, bufferSize) api for dynamic loading. On the server side, I wrote my xml structure so that I have 40 rows coming back from the server but after the grid is done parsing on the client side, I print out the grid's number of rendered rows and the number of rendered rows is 30 not 40. My issue is that I need to do a grid.showRow on rowId 38. How can I get row 38 rendered?
Answer posted by Support on Jul 28, 2008 02:14
In latest version of grid , showRow functionality works correctly for static smart rendering, the next code must work

grid = new ...
...
grid.loadXML(url,function(){
    grid.showRow("id_of_row_38");
});

It will not work for dynamical smart rendering, because in dyn. mode info about not rendered rows not available on client side, so grid can't detect position of row in question. In such case the scroll state can be changed by direct manipulation of scrollTop of related container.