Question

I was trying to define a jqgrid column as a radio button group, but I could not. Anybody knows what I have to do? Please give me an example.

Was it helpful?

Solution

You can do this if you define custom formatter and custom unformatter. If you will need to edit the cells/rows with radio buttons you will have to implement also custom editing. You can do implemant all this, but I would not recommend to do this. I recommend you to conside to use select formatter instead and use it together with stype:'select'. Radio button group shows mostly the same information, but in more compact form. If you do need to use radio button then I would you recommend you to use there only during cell/row editing.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top