/// <summary> /// Specifies whether row or cell selection is allowed. /// </summary> /// <example> /// <code lang="CS"> /// <%= Html.Kendo().Grid(Model) /// .Name("Grid") /// .Selectable(selection => selection.Type((bool)ViewData["selectionType"])) /// %> /// </code> /// </example> /// <remarks> /// The Type method is useful to switch between different selection types. /// </remarks> public GridSelectionSettingsBuilder Type(GridSelectionType type) { settings.Type = type; return this; }
/// <summary> /// Specifies whether row or cell selection is allowed. /// </summary> /// <example> /// <code lang="CS"> /// <%= Html.Kendo().Grid(Model) /// .Name("Grid") /// .Selectable(selection => selection.Type((bool)ViewData["selectionType"])) /// %> /// </code> /// </example> /// <remarks> /// The Type method is useful to switch between different selection types. /// </remarks> public GridSelectionSettingsBuilder Type(GridSelectionType type) { settings.Type = type; return(this); }