Forums

Forums / Developing Portals / Fire Event after Paging Grid By Ajax ?

Fire Event after Paging Grid By Ajax ?

Thread is closed for posting
2 posts, 1 answered
  1. ahmed.hussien1
    ahmed.hussien1 avatar
    3 posts
    Registered:
    20 Feb 2017
    19 Mar 2017
    Link to this post
    How to Fire Event after Paging Grid By Ajax ?
  2. Clinton Bale
    Clinton Bale avatar
    126 posts
    Registered:
    21 Feb 2014
    Answered
    28 Mar 2017 in reply to ahmed.hussien1
    Link to this post
    Hello Ahmed,

    If you are using the TPC MVC Grid, this functionality is easy:

    $(function(){
        var grid = tpc.find("grid");// grid replaced by the name of your grid
        grid.get_grid().bind("page",function(e){
            var pageIndex = e.page;
            var sender = e.sender;
            // add your event handling code here.
        });
    });
    

    Let me know if my example wasn't clear enough.

    Regards,
    Clinton
2 posts, 1 answered