Howto keep dropdown list open after refresh of datasource?

2 posts, 0 answers
  1. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 23 Nov 2015 Link to this post

    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...

     

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1801 posts

    Posted 25 Nov 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top