The row expander examples are nice; they provide you an extra column with a small expansion icon. Other times you might want to let the user select the whole row, select many rows, or select a particular cell so that you can then perform some action on those selected rows. Ext.NET's selection models help us here.
In all the grid examples
we have covered so far, we have not explicitly defined how a row is selected. So the default, known as the RowSelectionModel
, is used. This lets you click anywhere on a row to select it. You can also enable multirow selection, so a user can select multiple rows like they would on a desktop application, using Ctrl and click, or Shift and click. So, omitting a selection model is equivalent to the following code snippet:
<GridPanel> <!-- all the other declarations go here as before --> <SelectionModel> <ext:RowSelectionModel runat="server" /> </SelectionModel> </GridPanel...