Example of Sorting and Filtering in ASP.NET MVC Spreadsheet Control

Spreadsheet
Data Analysis
Sorting and Filtering

This sample demonstrates sorting and filtering feature using employee details.

ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAY
1
3
5
6
26
29
49
52
53
54
55
56
57
58
59
60
61
62
63
64
65
EmployeeID
EmployeeName
Gender
Department
DateOfJoining
Salary
City
5648843Ailsun PorkerFemaleServices11/23/2016$46,533.06Mayisyan
5918336Aloysius BlundenMaleServices6/16/2010$23,992.84Italó
7239057Bruce PookMaleServices8/15/2019$46,169.78Drawsko
5210163Helene BorsayFemaleServices1/19/2018$34,017.42Chengkan
3536836Justus EilertMaleServices8/30/2016$25,054.73Kitamilo
9189124Valerye RussellFemaleServices7/17/2012$32,651.96Pichilemu
EmployeeID

In this demo, sorting is applied to B(Employee Name) column in ascending order using sort method. The sort order can be specified in order property with following values `Ascending` or `Descending` and its default value is `Ascending`. The sorted data is filtered with value 'Services' in `D` column using applyFilteropens in a new tab method in call back function of sortopens in a new tab method.

More information about sorting and filtering feature can be found in this documentation opens in a new tab section.

Transform your ASP.NET MVC web apps today with Syncfusion® ASP.NET MVC components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab