This is a migrated thread and some comments may be shown as answers.

Client side sorting but server side filtering.

4 Answers 290 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Johan
Top achievements
Rank 1
Johan asked on 20 Mar 2013, 07:15 AM
Hello Kendo forum.

I'm investigating the possibility to replace an older grid in our application to the Kendo Grid. The application is an n-tier MVC application and as the title says I would like sorting to happen client side without any postbacks (normal or ajax) and when the user changes the filter or paging I would like the grid to refresh with new data from the server. Can this be achieved, and if so, how?

I've been looking at the the grid.dataSource.serverSorting property but haven't been able to make it work. It also seems to only be available in the javascript setup and we would like to use the Html helper @(Html.Kendo().Grid() to setup the grid in order to get Razor syntax support.

I also noticed that the serverSorting, serverFiltering and serverPaging properties was available on the Kendo.Mvc.UI.DataSource type in the Controller but I'm not sure how to databind that to the grid and if it would work.

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 22 Mar 2013, 08:21 AM
Hello Johan,

When using the Kendo MVC Extensions you can set ServerOperation to true or false and thus change all of the settings such as serverFiltering, serverPaging, serverGrouping, serverSorting to be performer either server side or client side - you cannot change just one or few of them.

Consider using the JavaScript version of the Grid if you want to separate the operations, also keep in mind that even if sorting is set to be executed on the client there will be an ajax request - if there is even one operation set to be server-side a ajax request will be performed.

Kind Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Shruthika
Top achievements
Rank 1
answered on 03 Nov 2016, 07:52 PM
Is this still true or any thing changed and explicit setting for serverFiltering, serverPaging, serverGrouping, serverSorting is exposed on kendo MVC Extensions?
0
Shruthika
Top achievements
Rank 1
answered on 03 Nov 2016, 07:52 PM
Is this still true or any thing changed and explicit setting for serverFiltering, serverPaging, serverGrouping, serverSorting is exposed on kendo MVC Extensions?
0
Nikolay Rusev
Telerik team
answered on 07 Nov 2016, 09:50 AM

Hello Shruthika,

 

There is a custom datasource  configuration exposed to MVC wrappers where you have fine grained control over which server operation is enabled.

 

Regards,
Nikolay Rusev
Telerik by Progress
 
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
 
Tags
Grid
Asked by
Johan
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Shruthika
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Share this question
or