New to Telerik UI for ASP.NET Core? Start a free 30-day trial

GridSelectableSettings class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("selectable", ParentTag = "kendo-grid", TagStructure = TagStructure.WithoutEndTag)]
public class GridSelectableSettings : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseGridSelectableSettings

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the GridSelectableSettings class.

C#
public GridSelectableSettings()

Properties

If set to true all aggregates will be calculated and made available to the Status Bar.

C#
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.

C#
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.

C#
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.

C#
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.

C#
public bool IgnoreOverlapped { get; set; }

Can be set to the following string values:

  • "row" - the user can select a single row.
  • "cell" - the user can select a single cell.
  • "multiple, row" - the user can select multiple rows.
  • "multiple, cell" - the user can select multiple cells.
C#
public string Mode { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

SerializeSettings method.

C#
public Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>