RadComboBox Rendering Problem

2 posts, 0 answers
  1. Ilker
    Ilker avatar
    1 posts
    Member since:
    Jul 2012

    Posted 13 Oct 2016 Link to this post


    Can anybody help me to solve this issue?

    I am using RadComboBox and have an issue about this control. I am creating RadComboBox on server side and keep this control as Html like in .png. Everthing works fine on this situation. But when I try to update items for adding or removing any item, rcbSlide in body not updated, thats why combox does not display updated items. How can sync both rcbSlide in body and radcombox div? I tried copy html from div to body but, it does not work. Also when I close and reopen project new items displayed in combo. It seems body cache the items but I can not find have can I refresh items?

    Please look at attached screenshots, 

    CreateRadComboBox.PNG for creating html for RadComboBox

    rcbSlide_InDIV.PNG for displayed updated combo in UI

    rcbSlide_InBody.PNG for html that stored in body.



  2. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    595 posts

    Posted 18 Oct 2016 Link to this post

    Hello Ilker,

    I am afraid that the approach chosen to generate the RadComboBox HTML on server and simply inject it on the page is not a supported scenario for this control. Instead, you will have to add the control to the Page controls collection instead:
    protected void Page_Load(object sender, EventArgs e)
        // Add Script manager
        var scriptManager = new RadScriptManager();
        // Add RadComboBox
        var newCombo = new RadComboBox();
        newCombo.ID = "RadComboBox1";
        var firstItem = new RadComboBoxItem();
        firstItem.Text = "First Item";
        var secondItem = new RadComboBoxItem();
        secondItem.Text = "Second Item";

    Then, to add or remove items, you could use the rich server-side or client-side APIs of the RadComboBox.

    Veselin Tsvetanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top