Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Udaya on Jun 16, 2008 08:24
open dhtmlx forum
Get Column value

Hi,

I have a requirement such that i need to get the entire column values without any event happening(Such as on click or select).
In my case iam moving the rows up and down.Hence i need to change the row id automatically in sequential order.Based on this new order i want to retrieve the entire values of the first column.Please tell me how to do this.



With regards,
Udaya.R

Answer posted by Support on Jun 17, 2008 03:39
You can use code similar to next
    var values=[];
    for (var i=0; i<mygrid.getRowsNum(); i++)
       values.push(mygrid.cells2(i,0).getValue());

The code will loop through all rows in grid, in same order  as rows rendered, get values of cell in first column, and store them in values array.
Answer posted on Jun 17, 2008 07:44

Thank you..Its working