Hi
I have battled with this before and never managed to implement this correctly.
I have a datagrid (telerik rad grid) which I'm binding to say 10,000 records which is either a datatable or collection / list of items.
Now the problem is that the grid only shows 10 records (it is paged) but everytime the user navigates to the page with the grid on it has to retrieve all 10,000 records from the database, and also when the user navigates to say page 2 on the grid to see the next 10 records the application has to again retrieve all 10,000 records from the database and then bind it to the grid to show only the required 10 records.
How can I cleverly get away from this way of doing things by only returning the required records? and also bear in mind that the data in the database may change? I'm stumped no finding a solution for this one? maybe I'm just not seeing the simple solution?
Please advise if possible.
I have battled with this before and never managed to implement this correctly.
I have a datagrid (telerik rad grid) which I'm binding to say 10,000 records which is either a datatable or collection / list of items.
Now the problem is that the grid only shows 10 records (it is paged) but everytime the user navigates to the page with the grid on it has to retrieve all 10,000 records from the database, and also when the user navigates to say page 2 on the grid to see the next 10 records the application has to again retrieve all 10,000 records from the database and then bind it to the grid to show only the required 10 records.
How can I cleverly get away from this way of doing things by only returning the required records? and also bear in mind that the data in the database may change? I'm stumped no finding a solution for this one? maybe I'm just not seeing the simple solution?
Please advise if possible.