Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
580
How do I programmatically change what page is being displayed?
posted

How do I programmatically change what page is being displayed while using the Paging behavior?

I'd also settle for just resetting the Paging behavior to the default state.  I really just need to programmatically get it back to page one.

 

Parents
  • 14049
    Suggested Answer
    Offline posted

    Hello,

    To change a page from the JavaScript you can do the following:

    function changePage(index)

    {

          var grid = $find("WebDataGrid1");

          grid.get_behaviors().get_paging().set_pageIndex(index);

    }

     

Reply Children
No Data