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

SpreadsheetSheetSortSettingsColumnBuilder

Methods

Ascending(System.Boolean)

Indicates if the data in the cell will be sorted in ascending (true) or descending order (false).

Parameters

value - System.Boolean

The value that configures the ascending.

Example


             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Sheets(sheets =>
                        {
                            sheets.Add()
                                .Name("Food Order")
                                .Sort(sort => sort.Columns(cols => cols.Add().Ascending(true)));
                        })
            )

Index(System.Double)

The index of the column within the sheet. For example, column C will have an index of 2.

Parameters

value - System.Double

The value that configures the index.

Example


             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Sheets(sheets =>
                        {
                            sheets.Add()
                                .Name("Food Order")
                                .Sort(sort => sort.Columns(cols => cols.Add().Index(1)));
                        })
            )

In this article
Not finding the help you need?