Completed
Last Updated: 20 Nov 2014 21:01 by ADMIN
Pavel
Created on: 17 Sep 2014 19:28
Category: Kendo UI for jQuery
Type: Feature Request
2
Add rerender method to dropdownlist
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 
3 comments
ADMIN
Telerik Admin
Posted on: 19 Sep 2014 09:30
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.
Pavel
Posted on: 18 Sep 2014 09:36
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?
ADMIN
Telerik Admin
Posted on: 18 Sep 2014 07:18
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.