Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by uvaraj24 on Aug 24, 2008 22:54
open dhtmlx forum
How to Edit cell data?

Dear Support team,

I am trying to edit a cell on the grid, the code which i am using is

mygrid.callEvent("onEditCell",function(sid,tid){
             eidt_Row(sid,tid,mygrid.cells(sid,tid).getValue());
             return true;
                });

But here i am not able to get the row and column id's, and also if i use like this grid data is not displaying, The Edited data i need to store it in the Database"

please help me how to edit a cell data.

Thanks In Advance
Uvaraj24
Answer posted by Support on Aug 25, 2008 01:50
The onEditCell event provides parameters in different order than used in your snippet.
       mygrid.callEvent("onEditCell",function(stage,sid,tid,value){
               if (stage==2) //edit operation end
                     eidt_Row(sid,tid,value); 
               return true; 
       });