Refresh a combo...

5 posts, 0 answers
  1. Rudie Chiu
    Rudie Chiu avatar
    9 posts
    Member since:
    Mar 2010

    Posted 12 Apr 2010 Link to this post

    Hi

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

    RadCombo1.Requery or RadCombo1.Refresh

    Thanks

    Rudie
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Apr 2010 Link to this post

    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.
  3. Kevin Price
    Kevin Price avatar
    49 posts
    Member since:
    Sep 2012

    Posted 17 Sep 2010 Link to this post

    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.
  4. Yana
    Admin
    Yana avatar
    4813 posts

    Posted 23 Sep 2010 Link to this post

    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
  5. Kevin Price
    Kevin Price avatar
    49 posts
    Member since:
    Sep 2012

    Posted 24 Sep 2010 Link to this post

    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!
Back to Top