Class SelectionOptionsBuilder<T>
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class SelectionOptionsBuilder<T>
where T : class
Type Parameters
Name | Description |
---|---|
T |
Constructors
SelectionOptionsBuilder(SelectionSettings)
Initializes a new instance of the
Declaration
public SelectionOptionsBuilder(SelectionSettings selection)
Parameters
Type | Name | Description |
---|---|---|
SelectionSettings | selection | It displays the list of SelectionSettins option |
Methods
AllowDragSelection()
It sets a value that indicates whether to enable the selection multiple rows or cells by dragging in Grid.
Declaration
public SelectionOptionsBuilder<T> AllowDragSelection()
Returns
Type | Description |
---|---|
SelectionOptionsBuilder<T> | SelectionOptionsBuilder |
AllowDragSelection(Boolean)
It sets a value that indicates whether to enable the selection multiple rows or cells by dragging in Grid.
Declaration
public SelectionOptionsBuilder<T> AllowDragSelection(bool allowDragSelection)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowDragSelection | It accepts the boolean value and enables or disables the selection by dragging |
Returns
Type | Description |
---|---|
SelectionOptionsBuilder<T> | SelectionOptionsBuilder |
CellSelectionMode(CellSelectionMode)
It sets a value that indicates to select the cell.
Declaration
public SelectionOptionsBuilder<T> CellSelectionMode(CellSelectionMode cellSelectionMode)
Parameters
Type | Name | Description |
---|---|---|
CellSelectionMode | cellSelectionMode | It selects the cell |
Returns
Type | Description |
---|---|
SelectionOptionsBuilder<T> | SelectionOptionsBuilder |
EnableToggle()
It sets a value that indicates whether to enable the toggle selection behavior for row, cell and column.
Declaration
public SelectionOptionsBuilder<T> EnableToggle()
Returns
Type | Description |
---|---|
SelectionOptionsBuilder<T> | SelectionOptionsBuilder |
EnableToggle(Boolean)
It sets a value that indicates whether to enable the toggle selection behavior for row, cell and column.
Declaration
public SelectionOptionsBuilder<T> EnableToggle(bool enableToggle)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enableToggle |
Returns
Type | Description |
---|---|
SelectionOptionsBuilder<T> | SelectionOptionsBuilder |
SelectionMode(Action<SelectionModeBuilder<T>>)
It sets a value that indicates whether to add the default selection actions as a selection mode.
Declaration
public SelectionOptionsBuilder<T> SelectionMode(Action<SelectionModeBuilder<T>> defaultItems)
Parameters
Type | Name | Description |
---|---|---|
System.Action<SelectionModeBuilder<T>> | defaultItems | It selects items based on selectionMode through lambda expression |
Returns
Type | Description |
---|---|
SelectionOptionsBuilder<T> | SelectionOptionsBuilder |
SelectionMode(List<SelectionMode>)
It sets a value that indicates whether to add the default selection actions as a selection mode.
Declaration
public SelectionOptionsBuilder<T> SelectionMode(List<SelectionMode> defaultMode)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<SelectionMode> | defaultMode | It selects items based on selectionMode |
Returns
Type | Description |
---|---|
SelectionOptionsBuilder<T> | SelectionOptionsBuilder |