GridReorderingSettingsBuilder

Methods

Columns(System.Boolean)

Enables or disables column reordering.

Parameters

value - System.Boolean

True to enable columns reordering, otherwise false

Example

Razor
 
            @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);
                })
                .Scrollable()
                .Reorderable(reordering => reordering.Columns(true))
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )
              

Rows(System.Boolean)

Enables or disables rows reordering.

Parameters

value - System.Boolean

True to enable rows reordering, otherwise false

Example

Razor
 
            @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);
                })
                .Scrollable()
                .Reorderable(reordering => reordering.Rows(true))
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )
              

Rows(System.Action)

Enables or disables rows reordering.

Parameters

configurator - System.Action<GridReorderingRowsSettingsBuilder>

Example

Razor
 
            @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);
                })
                .Scrollable()
                .Reorderable(reordering => reordering.Rows(true))
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )