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

Howto keep dropdown list open after refresh of datasource?

1 Answer 780 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Richard Koslik
Top achievements
Rank 1
Richard Koslik asked on 23 Nov 2015, 05:02 PM

Hello all,

i want to reload my dropdown list(filtering and suggest set) after providing some filtering and keep the list open with the results to select from...

The problem is that after setting the datasource with the new values, sometimes the dropdown is closed...

steps:

  1. open Dropdown
  2. type in some filter string
  3. press enter-key
  4. request new data from server
  5. set datasource with new values  ( ddl.setDataSource(new_datalist) )

 Step 5 makes me trouble...

The filtervalue is taken as follows:

var bel = $("#detail-bel").data("kendoDropDownList");
var filterInput = bel.filterInput;
filterInput.keydown(function(e){
if(e.keyCode == 13){
    stopEvent(e);

     loading new data with this.value as filterstring

}

 

Any suggestions?

Thank you...

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 25 Nov 2015, 12:24 PM
Hi Richard,

You could try to manually open the popup with the widget's open method:
If you have something different in mind, please provide a dojo example with your current implementation, so we can have a better idea of your exact scenario.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DropDownList
Asked by
Richard Koslik
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or