Hi, I am using MVC 3 and trying to create telerik Dropdown control dynamically through JQuery or Javascript at runtime on link button click .Please guide me.Thanks in advance.
2 Answers, 1 is accepted
0
Petur Subev
Telerik team
answered on 23 Mar 2012, 10:35 AM
Hello Prashant,
Such functionality is not supported. Neverthless, if you have included all the needed scripts you can render the needed HTML and then call our initialization function.
e.g.
HTML:
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
I had the same problem, and your code works fine, thanks. However, I have an issue when I apply the tDropDownList method on an element that I cloned with the jQuery clone method. In the previous example, I would clone the containing div, and then change the id and name properties of the hiddent input. There is no error, but the list is not filled. Would you have any suggestion? It seems that some initialization is missing.
Thanks
Update: please ignore, it works: I had a typo in my code!