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

[Solved] Problem with RadGrid not updating

4 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Neil Mercer
Top achievements
Rank 1
Neil Mercer asked on 12 Nov 2009, 05:54 AM
Hi,

I have a RadGrid that I am manually controlling data for using the NeedDataSource event.  Everything has been working fine, until I added a RadComboBox outside of the grid which allows the user to select a value for filtering the grid.  I'm calling Rebind() to re-query my data, and it's calling NeedDataSource correctly.  I query my data, bring back new values based on the filter, and assign it to the DataSource property of the grid.  However the grid display never updates so the user is left seeing the records from before the filtering.

Any ideas?

Thanks,
Neil.

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 12 Nov 2009, 03:05 PM
Hello Neil,

For more information about how to display dependant records in RadGrid on selection in RadComboBox, please refer to the following online example:
Grid Filtered by Combo
 
Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Neil Mercer
Top achievements
Rank 1
answered on 13 Nov 2009, 03:18 AM
Hi,

Thanks for the link.  My code is basically the same as the sample, except I'm using the NeedDataSource event to populate the grid rather than a DataSource object.

I can verify that the NeedDataSource event is firing, so I know the ComboBox and AjaxManager are doing their thing.  I've also verified that the data I'm pulling in (via OpenAccess ORM) is right, however after assigning the data to the DataSource property of the grid it's not refreshing to show the new data.

Thanks,
Neil.
0
Pavlina
Telerik team
answered on 18 Nov 2009, 12:43 PM
Hello Neil,

I am afraid that the provided information is not enough to determine the exact source of the issue you are facing. At this point I will ask you to open a formal support ticket and send us a runnable project. Thus I could do my best to find a quick resolution of this issue.

Looking forward for your reply.

Greetings,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Neil Mercer
Top achievements
Rank 1
answered on 18 Nov 2009, 08:55 PM
Hi Pavlina,

It's OK, I worked out what the problem was late last night. 

My Grid is in a User Control, and at some point I had added an AjaxManager to the web page the user control was embedded in.  This was conflicting with the AjaxManager I had on the control.  I've cleaned that up and the combo box and grid are now working as expected.

Thanks,
Neil.
Tags
Grid
Asked by
Neil Mercer
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Neil Mercer
Top achievements
Rank 1
Share this question
or