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

RadGrid not refreshing after Insert/Update/Delete operations

2 Answers 780 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Random Blackburn
Top achievements
Rank 1
Random Blackburn asked on 14 Sep 2009, 04:31 PM
I have one grid on my page, that I am performing Insert/Update/Delete operations on.  On the page I have the RadAjaxManagerProxy (I'm doign this in a UserControl), the RadAjaxLoadingPanel, and the RadGrid.  I am not using a datasource on the page, but am binding to a datasource on the server.  All Insert/Update/Delete events are being bound on the server side also.

All events fire, all data operations are performing correctly, and I am calling the Rebind() method after the data operations.  However, the grid itself does not show the updated results unless I refresh the page completely.

As I've seen suggested on other posts, I've trie disabling the grid viewstate, and tried wrapping the grid in a RadAjaxPanel.  Nothing works.  What do I need to do to get the grid to refresh???

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Sep 2009, 04:33 AM
Hi,

RadGrid  will automatically refresh after Update/Insert/Delete operation if you binding the Grid in the NeedDataSource event. Are you using AdvanceDataBinding techniques?
Advanced Data Binding

You can also refer the following help article which explains manual Insert/Update/Delete operations.
Insert/Update/Delete at database level with queries

Thanks
Princy
0
Random Blackburn
Top achievements
Rank 1
answered on 15 Sep 2009, 06:09 PM
Yep.  Used NeedDataSource.  The only thing that finally helped was to explicitely set the grid datasource = null before rebinding.
Tags
Grid
Asked by
Random Blackburn
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Random Blackburn
Top achievements
Rank 1
Share this question
or