GridSelectableSettings class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("selectable", ParentTag = "kendo-grid", TagStructure = TagStructure.WithoutEndTag)]
public class GridSelectableSettings : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseGridSelectableSettings
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridSelectableSettings class.
public GridSelectableSettings()
Properties
If set to true all aggregates will be calculated and made available to the Status Bar.
public bool CellAggregates { get; set; }
Defines a list of aggregates which should be calculated.
The available aggregates are:
count - the count of all selected cells(excluding command/selectable/draggable column) but including template columns without fields.
max - for numeric cells - the biggest numeric value across all of the selected cells/rows.
min - for numeric cells - the smallest numeric value across all of the selected cells/rows.
sum - for numeric cells - the sum of all numeric values from the selected cells/rows.
average - for numeric cells - the average of all numeric values from the selected cells/rows.
earliest - for date cells.
latest - for date cells.
isTrue - for boolean cells - the count of all selected cells with value true.
isFalse - for boolean cells - the count of all selected cells with value false.
public string[] CellAggregatesCollection { get; set; }
When set to true, the Grid.Selectable will not be initialized. Should be enabled when both checkbox selection for the Grid and cell aggregates are required.
public bool CheckboxSelection { get; set; }
When set to true, the user can drag to select multiple Grid rows or cells. Applies only for multiple row or multiple cell selection.
public bool DragToSelect { get; set; }
When set to true, visually hidden elements that match by the filter option criteria but are overlapped by other elements that also can be selected, are ignored. Applies only for multiple cell selection.
public bool IgnoreOverlapped { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
SerializeSettings method.