Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by lakky on Sep 19, 2008 00:57
open dhtmlx forum
dhtmlxgrid

hi,

i have grid with 2 columns with second column as radio button. so if i add a row then the second column should also have a radio button.

May i know how can it be done and beside that radio button i need to dispaly a value and also if i select the radio button i need to get that value. Please help me in doing this

thanks
Answer posted by Support on Sep 22, 2008 02:46
It is not possible to display radio button and some value in one column.

If you choose grid skin without borders, you can define 3 columns: ra - the second with small width and  the 3rd  - some  other, for example, "ro".

In order to run some action when radio button state is changed, you can use onCheck event handler:

grid.attachEvent("onCheck",function(row_id,index,state){
       /*your code here*/
})