We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to use filtersearch and event change ?

Hello, i am using a dropDownList component with EnableFilterSearch atrribute and a event Change attribute . 
When using filter with keyboard, the change event doesnt work. How to use filtersearch and event change ?

Example :

                            @(Html.EJ().DropDownList("ficheMessageComboNatureMessage").Datasource((IEnumerable<Parametre>)Model.listNatureMessage)
                                                            .DropDownListFields(f => f.Text("LIBELLE").Value("REFERENCE").ID("REFERENCE"))
                                                            .WatermarkText("").Enabled(false)
                                                            .Width("100%")
                                                            .ClientSideEvents(ev => ev.Change("messagesFiche_ComboNatureMessage" + "_Change"))
                                                            .EnableFilterSearch(true).FilterType(SearchFilterType.StartsWith)
                                                            .HtmlAttributes(nameNatureMessage)
                                                            .CssClass("NuanceInput")
                            )


3 Replies

AB Ashokkumar Balasubramanian Syncfusion Team October 18, 2019 01:07 PM UTC

Hi Cholet, 
 
Good day to you. 
 
We have checked your provided code block and reported problem at our end. Our Dropdown List component change event triggered properly when using keyboard at our end. Could you please check the below sample? 
 
Sample:   
 
 
Our Dropdown List component change event not triggered on each key press; it will be triggered on select the value in popup. If you want the event for each key press, please use the search event. 
 
Could you please check the sample and get back to us, if you require any further assistance? 
 
Regards, 
Ashokkumar B.  



CH Cholet October 22, 2019 10:24 AM UTC

Thanks for your answer. 
We solved our problem.



KR Keerthana Rajendran Syncfusion Team October 23, 2019 05:06 AM UTC

Hi Cholet,  
 
We are glad to hear that the issue has been resolved. Please let us know if you require further assistance on this. 
 
Regards, 
Keerthana. 


Loader.
Up arrow icon