Paging clears grid

4 posts, 0 answers
  1. Matthew
    Matthew avatar
    25 posts
    Member since:
    Aug 2011

    Posted 27 Feb 2012 Link to this post

    I have a grid that gets populated with data after a search button is clicked. The grid has paging enabled, but everytime a new page is selected the grid disappears. Why could this be happening?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Feb 2012 Link to this post

    Hello Matthew,

    Make sure that you are using Advanced data binding using its NeedDataSource event to bind the grid. Check the following help documentation which explains more about this.
    Advanced Data-binding (using NeedDataSource event).

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Matthew
    Matthew avatar
    25 posts
    Member since:
    Aug 2011

    Posted 28 Feb 2012 Link to this post

    Hi Shinu,

    Ok NeedDataSource makes sense, however the data that is being loaded is based on search criteria on the form and the data is returned after a button click. How do I set that up to where NeedDataSource is called after a button click
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 29 Feb 2012 Link to this post

    Hi,

    To achieve your goal you can try to call grid's Rebind() method on button click and let me know how it goes.

    Regards,
    Pavlina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top