jQuery UI Widgets Forums Lists DropDownList If open then source

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 10 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • If open then source #65862

    detberlin
    Participant

    Hello Community,

    I’m trying to solve a problem here already a few days.
    and though it comes that when I dropdownbutton click the
    should be read only the datasource.

    I give you a practical example using a code.

    
    var source = ["Affogato", "Americano", "Bicerin", "Breve", "Café Bombón", "Café au lait", "Caffé Corretto", "Café Crema"];
       
    
    $("#jqxDropDownList").jqxDropDownList({width:'200px', height:'25px'});
    
    $('#jqxDropDownList').on('open', function (event) { //here load the source });
    
    

    big thx in advance
    detberlin

    If open then source #65885

    Dimitar
    Participant

    Hello detberlin,

    Here is an example: http://jsfiddle.net/Dimitar_jQWidgets/xwq8w6t1/. We hope it is helpful to you.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    If open then source #65938

    detberlin
    Participant

    Hello Dimitar,

    I just read that I took the example of the dropdownlist.

    can I use this function even when the combobox?

    Unfortunately I asked the question with the wrong component.
    I meant the combobox

    Best Regards,
    detberlin

    If open then source #65987

    Dimitar
    Participant

    Hi detberlin,

    Yes, you can use the same approach for jqxComboBox, too. The two widgets have a very similar API.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.