We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

args.StartIndex = 0

Thread ID:





105482 Oct 29,2012 04:33 PM Nov 8,2012 01:02 AM ASP.NET MVC (Classic) 1
Tags: Grid
John Hind
Asked On October 29, 2012 04:33 PM

VS2012, ASPX, VB.Net

If the user is viewing page 9 and then clicks a column header to perform a sort on that column, I handle the data sorting and display the first page of data, but I want the grid to highlight page 1, not highlight page 9 still on the page selector at the bottom of the grid.

I have tried to use "args.StartIndex = 0" in the controller when creating the grid, but it does not work. Any ideas ?




Eswari S [Syncfusion]
Replied On November 8, 2012 01:02 AM

Hi John,

Thank you for using Syncfusion products.

We can achieve your requirement by changing the currentpageno in OnActionSuccess event. Please refer to the following code snippets:

function Success(sender, args) {
    if (args.RequestType == "sorting") {
        sender._pager._currentPageNo = 1;

For  your convenience , we have prepared the sample and the same can be downloaded from the following link:


Please try this and let us know if you have any queries.

Eswari S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.