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. Image for the cookie policy date

Detect page change in grid

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

3 Replies

SA Saravanan Arunachalam Syncfusion Team August 7, 2017 08:47 AM UTC

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. 



CJ Carlos Junior August 7, 2017 01:06 PM UTC

Excellent!
Thank you very much, Saravanan!

Regards,
Junior



SA Saravanan Arunachalam Syncfusion Team August 8, 2017 04:09 AM UTC

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


Loader.
Up arrow icon