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

Refresh a combo...

4 Answers 188 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Rudie Chiu
Top achievements
Rank 1
Rudie Chiu asked on 12 Apr 2010, 09:11 AM
Hi

Is it possible to refresh the data in a combo..? Kind like... 

RadCombo1.Requery or RadCombo1.Refresh

Thanks

Rudie

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Apr 2010, 10:21 AM
Hello Rudie,

You could use the DataBind() in order to refresh the combo items. The DataBind() method of RadComboBox binds the data source to combo and all its child controls.

Thanks,
Princy.
0
Kevin Price
Top achievements
Rank 1
answered on 17 Sep 2010, 03:22 PM
Except when it's inside an editform which is the issue I'm having.
Scenario:
Edit form has a RadCombo that is databound.
An insert can happen multiple times, so the EditForm shows and the RadGrid refreshes behind it when the user performs an insert. This works perfectly. Problem is - the editform doesn't Rebind (no matter what I've tried). I need this to happen so that the ComboBox no longer has the value the user selected to avoid dupes.

I've tried databind on the combobox in the insert handler as well with no luck.
0
Yana
Telerik team
answered on 23 Sep 2010, 10:53 AM
Hi Kevin,

I'm not able to understand exactly the scenario, could you please open a support ticket and send us simple page demonstrating the problem there? Thanks

Regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kevin Price
Top achievements
Rank 1
answered on 24 Sep 2010, 02:38 PM
I finally figured it out - was having a brain cramp I guess. I'm using a SqlDataSource and was forgetting to repopulate the SelectCommand before databinding the combo when an insert was being made - thus refreshing the combo. Thanks!
Tags
ComboBox
Asked by
Rudie Chiu
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Kevin Price
Top achievements
Rank 1
Yana
Telerik team
Share this question
or