3.2.0

setting Id for checkbox in grid

I have a grid with first column as checkboxes -
grid.setSelectionMode("multi-row-marker");

1. How can i set some identifier value to the check box,so that when a checkbox is clicked i can tell which row it is linked to.

2. When the form is submitted i want to read the values of all the selected checkboxes,which will be passed to the controller in request object.
ashii
February 1,
You can retrieve the array of selected row indices with getSelectedRows() method. To send this array in form submit action you have to put it into any form control, for example, hidden input.
Alex (ActiveWidgets)
February 4,

This topic is archived.

See also:


Back to support forum