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

Add combobox to div dynamically (runtime)

1 Answer 153 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Covertix
Top achievements
Rank 1
Covertix asked on 28 May 2014, 08:16 AM
Hi,

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?









1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 May 2014, 08:37 AM
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

Thanks,
Princy.
Tags
ComboBox
Asked by
Covertix
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or