Add rerender method to DropDownList, so that it could be dynamically refreshed after eintire select's HTML was changed. i have a page with several select lists, and their options can be added/removed/disabled/enabled again based on a quite complex logic, which is easier to implement with DOM maniulation than with calling DataSource methods. Would be nice to have such a possibility
Thanks for the reference. As my Dimo explained, you need to consider the possible solutions he depicted in the forum thread you pointed, to accomplish your task.
Thank you for the answer. I tried to use refresh method, and asked a question about it here: http://www.telerik.com/forums/how-to-rerender-dropdown-after-the-entire-select's-html-was-changed Here's the fiddle: http://dojo.telerik.com/isAQ I was answered that the widget doesn't support the HTML element's content editing after initialization. So my suggestion was to add such a possibility. Am i doing something wrong or missing something?
Thank you for the proposal, skog. Actually there's a refresh method (http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#methods-refresh) exposed via the API which does exactly what you request, i.e. refreshes the items in the dropdown popup. Alternatively, you can destroy the widget invoking its destroy method (http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#methods-destroy) and then initial a new instance with the new settings. Feel free to choose the option which suits your case best.