Jan 10, 2013, 6:28 PM
CheckboxSelectionModel doesn't stay checked in editable GridPanel
I have a GridPanel with ComponentColumns that are set to Editor(true).OverOnly(true) -- i.e., rows are editable on mouse-over.
One of the columns is a CheckBoxSelectionModel. If I select a checkbox on a row, then edit that row, and then move on to edit another row, the row becomes unchecked. It also doesn't remain checked if I change pages in the grid via PagingToolbar.
How do I make sure that the checkbox remains checked?
One of the columns is a CheckBoxSelectionModel. If I select a checkbox on a row, then edit that row, and then move on to edit another row, the row becomes unchecked. It also doesn't remain checked if I change pages in the grid via PagingToolbar.
How do I make sure that the checkbox remains checked?
.ColumnModel(columnModel =>
{
columnModel.Add(Html.X().ComponentColumn().Text("First Name").DataIndex("FIRST_NAME").Editor(true).OverOnly(true).Component(Html.X().TextField()));
columnModel.Add(Html.X().ComponentColumn().Text("Last Name").DataIndex("LAST_NAME").Editor(true).OverOnly(true).Component(Html.X().TextField()));
}
.SelectionModel(selectionModel =>
{
selectionModel.Add(Html.X().CheckboxSelectionModel()
.Mode(SelectionMode.Multi));
}