jQuery UI Widgets Forums Grid drop down grid editor change event

This topic contains 3 replies, has 3 voices, and was last updated by  Peter Stoev 9 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • drop down grid editor change event #65469

    jahnvi25
    Participant

    i have dropdown editor in a cell.. and when user selects the same (already selected) item.. it does not fire ‘change’ event.. is there a way i can fire some event even if old selection is same as new selection ?
    below is my initEditor method
    initeditor: function (row, value, editor, celltext, cellwidth, cellheight) {
    editor.jqxDropDownList(‘open’);
    var comboObj = editor[0];
    $(comboObj).on(‘change’, function (event){
    //do some task

    }
    });

    drop down grid editor change event #65477

    Dimitar
    Participant

    Hello jahnvi25,

    Unfortunately, the change event (as the name suggests) is fired only when the selection is changed. You may, however, bind to the close event which will fire even if the selected item is clicked.

    Best Regards,
    Dimitar

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

    drop down grid editor change event #65514

    jahnvi25
    Participant

    thanks for reply.. tried “close” event.. but that is getting fired multiple times.. i even tried “select”.. but that is not working as well..

    drop down grid editor change event #65515

    Peter Stoev
    Keymaster

    Hi jahnvi25,

    As Dimitar, suggested you, bind to the “close” event and bind only once. In initeditor you will bind to the event every time you open the editor.

    Best Regards,
    Peter Stoev

    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.