Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DropDownList does not reset filter when widget is re-created #1485

Open
IlBaffo opened this issue Mar 4, 2016 · 0 comments
Open

DropDownList does not reset filter when widget is re-created #1485

IlBaffo opened this issue Mar 4, 2016 · 0 comments

Comments

@IlBaffo
Copy link

IlBaffo commented Mar 4, 2016

Hi,
I have a filterable DropDownList in a container that is displayed with a "ng-if" directive.
The widget's DataSource is initialized in a variable outside the widget's options.

After filtering the list (and selecting an item) I proceed to hide the container.
When the container gets showed again the DropDownList shows only the filtered items and the filter textbox is empty, I have to manually change the filter text to see again all the items.
The issue is not present if the datasource is initialized in the directive's options because it gets re-created with the widget.

Expected Behaviour

I was expecting to see the textbox compiled with the previous filter or, at least, to see the entire list and not only the filtered items.

Suggested solution

I would suggest to check if the datasource is already filtered by the filtering field during the widget's initialization and then proceed to write the current value in the input field.

Here you can see a demo of the problem: http://dojo.telerik.com/OnIre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants