Add combobox to div dynamically (runtime)

2 posts, 0 answers
  1. Tzach Kaufmann
    Tzach Kaufmann avatar
    96 posts
    Member since:
    Aug 2008

    Posted 28 May 2014 Link to this post


    is it possible to add radcombobox to div in runtime?

    For example I use:
    $('#' + '<%= pnlValues.ClientID %>').append('<label for="tbClientName" class="ClientMatterTitle">Client:</label><input class="ClientMatterValue" type="text" id="tbClientName" maxlength="256" />');

    in order to add label and textbox.

    I tried to do the same with:

    $('#' + '<%= pnlValues.ClientID %>').append('<telerik:RadComboBox ID="RadComboBox4" runat="server" Width="250px" Height="150px" EmptyMessage="Select a Company" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" Label="Page Methods:"></telerik:RadComboBox>')

    but it doesn't work (throws a javascript error). Is it possible to do something like this?

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

    Posted 28 May 2014 in reply to Tzach Kaufmann Link to this post

    Hi Tzach Kaufmann,

    Since RadControls are server controls, we cannot create these on the client side. But you can create or delete items of RadComboBox from client side. 
    RadComboBoxItemCollection Object

Back to Top