This is a migrated thread and some comments may be shown as answers.

Multiple Dropdowns with filter("contains") reset all others with change

1 Answer 69 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Serina
Top achievements
Rank 1
Serina asked on 24 Sep 2018, 04:01 PM

When i have more than one dropdownlist on the page with ".Filter("contains")" but with unique names  (ie "Custodian_1", "Custodian_2",...) then when i click on one and make a selection and then click on another one and type "doe", then both dropdowns immediately reset to no selection made.  

 

@(Html.Kendo().DropDownListFor(m => m)
        .Name("Custodian")
        .DataTextField("Name")
        .DataValueField("LongId")
        .OptionLabel("Start typing to select user...")
        .Filter("contains")
        .HtmlAttributes(new { style = "width:100%;" })
        .DataSource(source =>
        {
            source.Read(read =>
            {
                read.Action("UserSelector_Read", "Users");
            })
            .ServerFiltering(true);
        })
)

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 26 Sep 2018, 12:02 PM
Hello Serina,

I have tested locally but I did not manage to replicate the described issue. 
I have tested by adding a second DropDownList in the serverFiltering example. On the screencast video linked here you could see the behavior on my end.
Here is also a Dojo example containing two DropDownLists with the same dataSource where you could test the behavior. 
May I ask you to prepare an isolated sample where the issue is replicated and send it back to us. This way we could troubleshoot locally and advise you further.

Regards,
Neli
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DropDownList
Asked by
Serina
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or