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

Kendo grid not holding initial sorting when clicking on next page

1 Answer 139 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PAUL
Top achievements
Rank 1
PAUL asked on 10 Oct 2012, 10:58 AM
I have a Kendo grid with inline editing set, so we are using Ajax as the datasource. On the initial load of the grid,  the records are sorted by modified date descending and all is fine. The problem is that when you click on a page the _Read function loses the sort, because the Ajax call takes over. This is not an issue if I click on the Modified Date column and apply the sorting after the page loads and then click on a page link. Once I do that it will hold the sort.  I understand why it does this, but we need to get it to persist the initial sort order without having to click on the column heading...it's an end user thing.

Is there a way to do this? I tried setting .ServerOperation(false) but it had no affect.

Neither did this
                  .Sort(sort =>
                    {
                        sort.Add(p => p.modifiedDate).Descending();
                    })

Thanks for your help

Paul

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 12 Oct 2012, 11:57 AM
Hello PAUL,

Could you verify that you have correctly setup the project to use KendoUI for ASP.NET MVC and all of the required scripts are referenced?

I have attached a small test project which demonstrates the scenario in question, please take a look maybe I'm missing something obvious. If this is the case please modify the project as the behavior to appear and send it back to us.

All the best,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
PAUL
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or