Dear Sir,
After i loaded around 2000 records into a grid, the response for user action is very slow. It takes around 1-2 seconds in order to highlight the row after mouse click on any row. Also, the column width adjust is very slow as well. Is there any way to improve it? Many thanks
i use the following code to construct the grid
grid = layout.cells("b").attachGrid();
grid.setImagePath("dhtmlx/codebase/imgs/");
grid.setHeader(" , ," + nameLabel + "," + descLabel + "," + verLabel + "," + modDate + header);
grid.setColTypes("ro,img,myLinkRo,txt,ro,ro" + colTypes);
grid.setInitWidths("30,30,150,200,60,100" + initWidths);
grid.setColAlign("center,center,left,left,right,left" + colAlign);
grid.setColSorting("na,str,str,str,int,str" + colSort);
grid.enableEditEvents(false, true, true);
grid.enableMultiline(true);
grid.enableMultiselect(true);
grid.setDateFormat(dhtmlxDateFormat);
grid.enableContextMenu(menu);
grid.attachEvent("onRowDblClicked", checkEditable);
grid.attachEvent('onBeforeSorting', function(ind,type,dir){
return onBeforeGridSort(ind,type,dir);
});
grid.attachEvent("onBeforeContextMenu", onBeforeOpenMenu);
grid.attachEvent("onRowCreated",onRowCreated);
grid.init();