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

Rebind RadGrids Only When Datasource Changes?

2 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 02 Dec 2011, 05:15 PM
Hi Telerik Friends,

I am working on an application which uses RadGrids pretty heavily.  In order to make sure that the grids are up to date, I've put them on a timer to rebind at a regular interval.  This causes some problems though, and just seems heavy handed.

Is there a way to have my grids rebind only when there are explicit changes to the data-source?

I have some ideas of how to do this, but it could take a lot of time that I don't have!

Thanks for any help,

Dan

2 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
answered on 02 Dec 2011, 05:51 PM
For clarity -- by "changes to the datasource" I just mean when data is updated in database.
0
Antonio Stoilkov
Telerik team
answered on 07 Dec 2011, 10:33 AM
Hello Daniel,

You need your timer because there is no way to check if the database have been updated. You could try and implement a method which will check if there are any changes in the database from the last time and only in this situation to rebind the grid.

Kind regards,
Antonio Stoilkov
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
Daniel
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Antonio Stoilkov
Telerik team
Share this question
or