Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by uvaraj24 on Aug 21, 2008 07:56
open dhtmlx forum
How to get particular cell data?

Dear Support Team,

I need to edit cell data in the grid, here i am getting row id as well as column id and i need to get the cell data aslo to update in the database on mouse up.

i am using the following code to get the row and column id's

mygrid.attachEvent("onRowSelect",function(sid,tid){
         eidt_Row(sid,tid); //this is the ajax function to where i am sending data to update in database for that particular id
     return true;
        });

please tell me how to get the cell data where i edited.

Thanks In Advance,
uvaraj24
Answer posted by Support on Aug 21, 2008 09:25
You can data of cell as 
     grid.cells(i,j).getValue()
In your case it will be

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