jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox ComboBox focus problem

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • ComboBox focus problem #61758

    simcon94
    Participant

    Hello,
    i have a Combobox.
    When i open the combobox, my whole side gets the focus.
    So i can’t selectmy entry in Combobox.
    Anybody an idea?

    
    $("#Box").jqxComboBox({ width: 250, height: 25, displayMember: 'Name', valueMember: 'Id', checkboxes: true })
    $('#Box').on('open', function (event) {
                var counters = GetSelectedItemsValue();
                
                    var source =
                    {
                        datatype: "json",
                        datafields: [
                            { name: 'Id', }
                            , { name: 'Name', }
                            , { name: 'Symbol' }
                        ]
                        , async: false
                        // get Model Data
                        , url: "getData"
    
                    };
                        var dataTypes = new $.jqx.dataAdapter(source);
                
                $("#Box").jqxComboBox({ source: dataTypes });
            });
    
    ComboBox focus problem #61765

    Peter Stoev
    Keymaster

    Hi simcon94,

    The problem in this code is that when you open the ComboBox, you change its data source which re-renders your ComboBox. I think you should use a different approach for setting the widget’s data source.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.