Ajax refresh of RadComboBox

6 posts, 0 answers
  1. Thomas
    Thomas avatar
    143 posts
    Member since:
    Feb 2007

    Posted 13 Feb 2008 Link to this post

    I cannot see to figure out how to force a RadComboBox to requery for its list of items client-side.

    One solution I tried was to surround the RadComboBox with a RadAjaxPanel (by the way when I do that the VS parser claims that RadComoBox is not a known element even though the solution compiles and runs fine.). In addition, I wired up the ItemsRequested event to populate the control. Then on the client side I call something like:
    var combo = $find("<%=this.MySpiffyCombo.ClientID %>"); 
    combo.requestItems(); 
     

    Another solution I tried was to use RadAjaxManager (which would be my preferred choice) where the AjaxControlID on the AjaxSetting and its only AjaxUpdatedControl item's ControlID are both set to the RadComboBox. Then on the client I tried:
    var ajaxManager= $find("<%=this.RadAjaxManager1.ClientID %>"); 
    ajaxManager.ajaxRequest("foo"); 

    Which did not fire on the server. Then I tried:
    var ajaxManager = $find("<%=this.RadAjaxManager1.ClientID %>"); 
    ajaxManager.ajaxRequestWithTarget("<%=this.MySpiffyCombo.UniqueID %""");  

    I also tried wiring up the AjaxRequest event on the RadAjaxManager and again it did not fire.

    What am I missing here? What is the Hoyle technique for ajax-ifying a RadComboBox and forcing a ajax refresh of its items?

  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 14 Feb 2008 Link to this post

    Hi Thomas,

    Please, check out the following online demo on the matter: Load-On-Demand.

    I hope it is helpful.

    Regards,
    Simeon
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Thomas
    Thomas avatar
    143 posts
    Member since:
    Feb 2007

    Posted 14 Feb 2008 Link to this post

    I wasn't actually trying to setup load on demand. I simply wanted the ability to fire an ajax update of the combobox should certain events occur on the page. However, are you suggesting that the only way to actually do that is with load on demand enabled?
  5. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 15 Feb 2008 Link to this post

    Hi Thomas,

    Please, find attached a sample project which demonstrates the approach you need. You should note that the RadAjaxManager updates the RadComboBox.

    For more information on how RadAjaxManager works, please refer to the following help article - AJAX Manager.

    I hope this information helps.

    All the best,
    Simon
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Kiran
    Kiran avatar
    2 posts
    Member since:
    Mar 2014

    Posted 05 Jun 2014 in reply to Simon Link to this post

    I have .aspx page which contains Rad Ajax manager and this page contains two tabs. User controls(.ascx) are used for the Tabs.
    I have radComboBox in user control (and Radajaxmanger in .aspx file). How can I refresh this combobox from client side?
  7. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Jun 2014 in reply to Kiran Link to this post

    Hi Kiran,

    Please have a look into the following forum thread which discuss about the same scenario.

    Ajax with RadTabStrip, RadMultiPage and UserControls
    update/rebind RadPageView from another RadPageView

    Thanks,
    Shinu.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017