Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Dec 14, 2009 02:07
open dhtmlx forum
find column index value

Hello,
i want the column index value when i click on column index "0" checkbox . when i clicked on that then i want column index 5 and 7 values not number the column index data . can u plz tell me how it is possiible.

Answer posted by Alex (support) on Dec 14, 2009 04:07

Hello,

there is onCheck event handler. That can be used in this case:

grid.attachEvent("onCheck", function(rowId,cellIndex,state){

var value5 = this.cells(rowId,5).getValue(); /*the value in the 6th column*/

var value7 = this.cells(rowId,7).getValue();/*the value in the 8th column*/

/*your code here*/

return true

});