Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jason Sung on Apr 10, 2008 01:02
open dhtmlx forum
Attach onEditCell event cause performance issue

Hello, there is a performance for dhtmlxGrid.

Here is my code:

mygrid.loadXML("xml/yyy.php,function(){

    mygrid.attachEvent("onEditCell",function(stage,id,ind,new_v,old_v){
    var return_value=true;
handling_row_id=id;
handling_cell_index=ind;
.
.
.
return return_value;});

My data is around 55 rows, but if I include the code "mygrid.attachEvent...." the page will spend around 30 sec to display. if I remark the section of attachEvent. the period will reduct to 6sec.

Is there any way to reduce the display time?
Answer posted by Support on Apr 10, 2008 01:38
onEditCell handler executed only when cell edited, it doesn't executed during initial grid loading , so it must not affect grid loading performance.
If problem still occurs for you - please provide any kind of sample where problem can be reconstructed, you can send it directly to support@dhtmlx.com

>>if I remark the section of attachEvent. the period will reduct to 6sec.
Actually the 6 second for 55 rows is quite a big time as well, it must not take more than 1 second to render such dataset  in normal case