All Products
Demos
Services
Blogs
Docs & Support
Pricing
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
ComboBox
/
Add combobox to div dynamically (runtime)
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Feed for this thread
2 posts, 0 answers
Covertix
96 posts
Member since:
Aug 2008
Posted 28 May 2014
Link to this post
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?
Princy
17421 posts
Member since:
Mar 2007
Posted 28 May 2014 in reply to
Covertix
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
Thanks,
Princy.
Back to Top
Close