Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by zu jianing on Mar 10, 2009 18:36
open dhtmlx forum
button in grid

hi

i put one colmn buttons in a grid, and now i want to change their state to disabled,

i used like this:

mygrid.obj.rows[i+1].childNodes[3].disabled = false;

but it hadn't effect.


how can i do this?
Answer posted by dhxSupport on Mar 11, 2009 02:43
You can get cell's object with cellById(i,j) or cellByIndex(i,j) methods:
mygrid.cellByIndex(i,j).cell.firstChild.disabled=false;
hese i - row index, j - cell index