jQWidgets Forums

Forum Replies Created

Viewing 16 post (of 16 total)
  • Author
    Posts

  • stevenmahony
    Participant

    Thanks for the quick response. I used that example and it got me so far but a little stuck now.

    I added to following code to my createditor :

    createeditor: function (row, value, editor) {
    editor.jqxDropDownList({ source: statusAdapter, displayMember: ‘label’, valueMember: ‘value’ });
    $(editor).on(‘select’, function (event) {
    console.log(editor);
    var item = $(editor).jqxDropDownList(‘getItem’, args.index);
    if (item != null) {
    selectedValue = item.label;
    }
    // would like to call an update function here when selected and unselected are different (but for the editor on the current grid row)
    });
    $(editor).on(‘unselect’, function (event) {
    var item = $(editor).jqxDropDownList(‘getItem’, args.index);
    if (item != null) {
    unselectedValue = item.label;
    }
    });

    }

    The issue I’m having now is that selecting and unselecting the dropdownlist are not exclusive to the current dropdownlist.
    I looked at the origianlItem in the object created by the dropdownlist but its the same as the current object values/label

    Steven

Viewing 16 post (of 16 total)