New to Telerik UI for ASP.NET MVC? Download free 30-day trial

GridReorderingSettingsBuilder

Methods

Columns(System.Boolean)

Enables or disables column reordering.

Parameters

value - System.Boolean

True to enable columns reordering, otherwise false

Example


            @(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


            @(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


            @(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"))
                )
            )

In this article
Not finding the help you need?