enableSmartRendering does not work

Hi,

I have a problem loading big data set into grid. (~17 000 records)

I was going to use enableSmartRendering () method - but FF & Chrome browsers just stop operation after a while. (with msg sth like “Do you wish to continue to run scripts on this page”)

My grid has only 2 columns, data strings are quite small 4 - 25 chars.

with Firbug I can see that data has retrieved from the server OK.

I hoped to use method described on this page:
dhtmlx.com/docs/products/dht … tatic.html

Version of DHTMLXGRID library 2.5 Pro
dhtmlxgrid_srnd.js module is loaded to page OK

The grid is inside html page which is inside dhtmlxlayout component.
Below is an extract of how I init my grid.

myGrid = new dhtmlXGridObject(‘myGridBox’);
myGrid.setSizes();
myGrid.setImagePath("…/jscript/grid/imgs/");
myGrid.setHeader(“CCode,CName”);
myGrid.setColumnIds(“DATA_ITEM_01,DATA_ITEM_02”);
myGrid.setSkin(“light”);
myGrid.setColTypes(“ed,ed”);
myGrid.setColAlign(“left,left”);
myGrid.setColSorting(“str,str”);
myGrid.setColHidden(“false,false”);
myGrid.enableRowsHover(true,‘gridRowHOver’);

myGrid.enableAutoHeight(true);
myGrid.enableAutoWidth(true);
myGrid.enableMultiselect(true);
myGrid.init();
myGrid.enableSmartRendering(true);
myGrid.preventIECashing(true);

myGrid.loadXML(“lookupData.php?action=loadLutDataGrid”, lut_afterGridLoaded);

myGrid.attachEvent(“onBeforeContextMenu”, on_dataGridShowMenu);
myGrid.enableColumnMove(true);
myGrid.enableMultiline(true);

Also when there is a small amount of records in this grid, for me do not work methods showRow() and selectRowById() as well. I insert a record into bottom of the grid and would like to scroll to the inserted row - but the above methods unfortunatelly do nothing for me.

Any feedback will be much appreciated.

Max.

I was going to use enableSmartRendering () method - but FF & Chrome browsers just stop operation after a while. (with msg sth like “Do you wish to continue to run scripts on this page”)
If you are loading 17K rows its better to use dynamic smart rendering mode. Please check tutorial here docs.dhtmlx.com/doku.php?id=dhtm … ep_by_step

Also when there is a small amount of records in this grid, for me do not work methods showRow() and selectRowById() as well.
Can you please provide more information regarding this issue. What are you doing, what is actual result and what is expected result for you?