RE: Checkbox in statis table
Hi,
You can add columns and specify that they should contain a checkbox by setting header.x.checkBox = true. For instance like this:
headers.0.label = Id
headers.1.label = Title
headers.2.label = Category
headers.3.label = Posted
headers.4.label = Deadline
headers.5.label = Check1
headers.5.checkBox = true
headers.6.label = Check2
headers.6.checkBox = true
headers.length = 7
pageSize = 100
Then, when you add rows programatically, you can set the checkbox value by add a cell with label 0 or 1. E.g. like this:
tickets.setFieldValue("addRow", rowMap); // Row map is map of row options.
... standard columns
tickets.setFieldValue("addCell", Map("label=1"));
tickets.setFieldValue("addCell", Map("label=0"));
Sverre