This is a migrated thread and some comments may be shown as answers.

Paging clears grid

3 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 27 Feb 2012, 10:06 PM
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?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Feb 2012, 05:50 AM
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.
0
Matthew
Top achievements
Rank 1
answered on 29 Feb 2012, 12:17 AM
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
0
Pavlina
Telerik team
answered on 29 Feb 2012, 03:17 PM
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.
Tags
Grid
Asked by
Matthew
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Matthew
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or