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.

Detect page change in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

131953 Aug 4,2017 11:35 AM Aug 8,2017 12:09 AM ASP.NET MVC 3
loading
Tags: Grid
Carlos Junior
Asked On August 4, 2017 11:35 AM

Hi!
In the attached image, there is a grid with two pages showing the first page.
Is there an event when it changes to the second page?

Regards,
Junior

Attachment: gridPage_cbf84917.rar

Saravanan Arunachalam [Syncfusion]
Replied On August 7, 2017 04:47 AM

Hi Carlos Junior, 
Thanks for contacting Syncfusion’s support. 
By default, the ActionBegin and ActionComplete event will be triggered with “paging” action while perform paging on the Grid control. Please refer to the below code example and api reference link, 
@(Html.EJ().Grid<OrdersView>("Grid") 
           . . .        .ClientSideEvents(e=>e.ActionComplete("onActionComplete").ActionBegin("onActionBegin")) 
) 
 
<script type="text/javascript"> 
    function onActionComplete(args) { 
        if (args.requestType == "paging") 
            alert("Paging action complete"); 
    } 
    function onActionBegin(args) { 
        if (args.requestType == "paging") 
            alert("Paging action begin"); 
    } 
</script> 
 
Regards, 
Saravanan A. 


Carlos Junior
Replied On August 7, 2017 09:06 AM

Excellent!
Thank you very much, Saravanan!

Regards,
Junior


Saravanan Arunachalam [Syncfusion]
Replied On August 8, 2017 12:09 AM

Hi Carlos Junior,  
Thanks for your update.            
We are happy that the provided information helped you. 
Regards, 
Saravanan A. 


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.

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.

;