jQWidgets Forums

jQuery UI Widgets Forums Grid Grid, dropdownlist, even

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Grid, dropdownlist, even #56696

    julioproo
    Participant

    Hi Peter I have built a Grid with and one of the lines, and create a dropdownlist editor CreateEditor, everything works perfect, but would like to have access to “select” the dropdownlist, event to know when one of the items loaded at the time of be selected from dropdownlisteditor, is it possible to access this “select” from dropdownlist created CreateEditor in a Grid? event. regards, July Nuñez

    Grid, dropdownlist, even #56712

    Dimitar
    Participant

    Hello julioproo,

    You can bind to the dropdownlist editor’s select event (and others) in the createeditor callback.

    Best Regards,
    Dimitar

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

    Grid, dropdownlist, even #56759

    julioproo
    Participant

    Dimitar thank you very much,

    That was all.

    regards,
    July Núñez

    Grid, dropdownlist, even #56855

    muqtadir
    Participant

    I have similar problem can we get a sample.

    Grid, dropdownlist, even #56997

    Dimitar
    Participant

    Hello muqtadir,

    Here is a code snippet:

    createeditor: function (row, column, editor) {
        // assign a new data source to the combobox.
        var list = ['Stuttgart', 'Rio de Janeiro', 'Strasbourg'];
        editor.jqxComboBox({ autoDropDownHeight: true, source: list, promptText: "Please Choose:" });
        editor.on('select', function (event) {
            var args = event.args;
            if (args && args.item) {
                // index represents the item's index.                
                var index = args.index;
                var item = args.item;
                // get item's label and value.
                var label = item.label;
                var value = item.value;
                alert("Selected " + value);
            }
        });
    },

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.