/// <summary>
        /// Specifies whether row or cell selection is allowed.
        /// </summary>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Kendo().Grid(Model)
        ///             .Name("Grid")
        ///             .Selectable(selection => selection.Type((bool)ViewData["selectionType"]))
        /// %&gt;
        /// </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;
        }
Exemple #2
0
        /// <summary>
        /// Specifies whether row or cell selection is allowed.
        /// </summary>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Kendo().Grid(Model)
        ///             .Name("Grid")
        ///             .Selectable(selection => selection.Type((bool)ViewData["selectionType"]))
        /// %&gt;
        /// </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);
        }