Class GridSelectionSettings
Inheritance
System.Object
GridSelectionSettings
Assembly: Syncfusion.EJ2.dll
Syntax
public class GridSelectionSettings : EJTagHelper
Constructors
GridSelectionSettings()
Declaration
public GridSelectionSettings()
Properties
AllowColumnSelection
If 'allowColumnSelection' set to true, then the user can able to to select the columns.
Declaration
public bool AllowColumnSelection { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
CellSelectionMode
The cell selection modes are flow and box. It requires the selection
mode
to be either cell or both.
Flow
: Selects the range of cells between start index and end index that also includes the other cells of the selected rows.
Box
: Selects the range of cells within the start and end column indexes that includes in between cells of rows within the range.
BoxWithBorder
: Selects the range of cells as like Box mode with borders.
Declaration
public CellSelectionMode CellSelectionMode { get; set; }
Property Value
CheckboxMode
Defines options for checkbox selection Mode. They are
Default
: This is the default value of the checkboxMode. In this mode, user can select multiple rows by clicking rows one by one.
ResetOnRowClick
: In ResetOnRowClick mode, on clicking a row it will reset previously selected row and also multiple
rows can be selected by using CTRL or SHIFT key.
Declaration
public CheckboxSelectionType CheckboxMode { get; set; }
Property Value
CheckboxOnly
If 'checkboxOnly' set to true, then the Grid selection is allowed only through checkbox.
Declaration
public bool CheckboxOnly { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
EnableSimpleMultiRowSelection
If 'enableSimpleMultiRowSelection' set to true, then the user can able to perform multiple row selection with single clicks.
Declaration
public bool EnableSimpleMultiRowSelection { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
EnableToggle
If 'enableToggle' set to true, then the user can able to perform toggle for the selected row.
Declaration
public bool EnableToggle { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsComplex
Declaration
protected override bool IsComplex { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Mode
Grid supports row, cell, column and both (row and cell) selection mode.
Declaration
public SelectionMode Mode { get; set; }
Property Value
ParentPropertyName
Declaration
protected override string ParentPropertyName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
PersistSelection
If 'persistSelection' set to true, then the Grid selection is persisted on all operations.
For persisting selection in the Grid, any one of the column should be enabled as a primary key.
Declaration
public bool PersistSelection { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Type
Defines options for selection type. They are
Single
: Allows selection of only a row or a cell.
Multiple
: Allows selection of multiple rows or cells.
Declaration
public SelectionType Type { get; set; }
Property Value