Demo enableSmartRendering not working

Hi,



We’re trying out the demo samples in the standard edition v 1.5

We get an error on enableSmartRendering line.

It doesn’t work with this line .

What can be the problem:



Here is a snippet of our code

[code]








......


mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("../../codebase/imgs/");
mygrid.setHeader("Order,Index 1,Request info");
mygrid.setInitWidths("50,275,250");
mygrid.setColAlign("right,left,left");
mygrid.setColTypes("ed,ed,ed");
mygrid.setColSorting("int,str,str");
mygrid.setColumnColor("white,#d5f1ff,#d5f1ff");
mygrid.init();
mygrid.enableSmartRendering(true,500);
mygrid.loadXML("500.xml");

[/code]

thanks

Please try to use attached file instead of original one - it must resolve js error.
Please beware that standard version supports only dynamic smart rendering so it expect that server side response will contain data according to sent request

dhtmlxgrid_srnd.zip (4.14 KB)


Thanks,



We’ve replaced the file with the one you sent - this did solve the JS error.



However the sorting isn’t working and the script is running heavily on the background ( on IE).



Yitzhak Zinner



 



 



 



 

In current version client side sorting is not possible in SRND mode, such functionality will be added in oncoming 1.5 release
The standard version supports only Dynamic SRND mode, if, instead of returning only requested rows, you are loaded all dataset at once, grid will be able to process it correctly but will not give any performance boost ( this is not static smart rendering mode where all dataset can be loaded at once )