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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

args.StartIndex = 0

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 ?

 

thanks

John


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

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;
        sender.sendRefreshRequest();
    }
}

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

http://www.syncfusion.com/downloads/Support/DirectTrac/94067/Filter163331802.zip

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

Regards,
Eswari S


CONFIRMATION

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.

Warning Icon 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.Close Icon

;