Categories | Question details Back To List | ||||||||
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] <script src="../../codebase/dhtmlxcommon.js"></script> <script src="../../codebase/dhtmlxgrid.js"></script> <script src="../../codebase/ext/dhtmlxgrid_srnd.js"></script> <script src="../../codebase/dhtmlxgridcell.js"></script> ...... 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 Answer posted by Stanislav on Nov 26, 2007 07:47 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 Attachments (1)
Answer posted by Yitzhak Zinner on Nov 27, 2007 02:41 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
Answer posted on Nov 27, 2007 03:24 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 ) |