I have a dhtmlxGrid . I have loaded a xml file inside it. I have 3 columns in the grid. My second column consists of radiobuttons. On selection of any of the radio button I want a event to occur. How do I do it. Please provide an example.
Do you use “ra” column type?
In this case you can use onEditCell event to listen to state of the editor. The state (editor value) can be got by getValue method:
grid.attachEvent(“onEditCell”,function(stage,rowId,cellIndex){
if(stage==1){
var value = this.cells(rowId,cellIndex).getValue();
/some your code here/
}
return true
})
Also, you can use “onCheck” event
grid.attachEvent(“onCheck”,function(id,index,state){
//will be called each time after radio checking
… any custom code here …
})