How to prepopulate Checkbox in Struts2 jquery grid column ?Note( The checkbox should also be editable)

1k views Asked by At

Am using Struts2 jquery grid to show List objects. I have a boolean attribute in it, which I wish to show as a Checkbox in UI(ie. Checked when 'True' and Unchecked when 'false'). This checkbox should also be editable in UI.Finally on submit I want only the records for which these checkbox values are changed.How to achieve this?

1

There are 1 answers

0
FNK On

You can use the option formatter="checkbox" and then to show a checkbox when the user selects "edit row", edittype="checkbox".