Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kalyan on Sep 26, 2008 04:47
open dhtmlx forum
Checkbox Click



hi Sir,

I have written something like this;
am not able to get the checkbox cell value as 1(when that one checked)
but now getting the value as 0 for grdGroupsF.cells(rw.idd,4).getValue().
Can we get some alternative to that ?

for(k=0;k<grdGroupsF.rowsCol.length;k++){
var rw =grdGroupsF.rowsCol[k];
if (rw){
if (grdGroupsF.cells(rw.idd,4).getValue()!=0){
strrwvals=strrwvals + grdGroupsF.cells(rw.idd,0).getValue()+ ","+grdGroupsF.cells(rw.idd,2).getValue() ;
strrwvals=strrwvals + SplitStrB();
}
}
}
Answer posted by Stanislav on Sep 29, 2008 16:55
The code which you are using to access data of cell is correct, and must return the actual value of cell. 
The problem may be caused by next reasons

a) usage of SRND or paging mode ( in such case your code may process not all row, you need to use forEachRow to access all rows in such mode )
b) the moment when code called - the data loading is async, so if you are loading it just after loadXML command, it may be executed before data really loaded in grid.