jQuery UI Widgets Forums Grid showvalidationpopup in nested grid

This topic contains 2 replies, has 2 voices, and was last updated by  Dimitar 7 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • showvalidationpopup in nested grid #85096

    atomic
    Participant

    Hi guys,

    Ia am using nested jqx rid with showvalidationpopup. When I call showvalidationpopup on button click everything works fine, but

    var grid = $($(parentElement).children()[0]); 
     grid.on('cellvaluechanged', function (event) {
           grid.jqxGrid('showvalidationpopup', 1, 2010, "test");
    });

    even this is not working, just testing with second row and first column (2010)…
    Any ideas?
    Thanks

    showvalidationpopup in nested grid #85098

    atomic
    Participant

    Acctually I got it.
    cellvaluechanged event of nested grid trigers cellvaluechanged event of main grid which deletes my popups.
    Is there a way not to invoke this second cellvaluechanged of main grid.
    Thanks

    showvalidationpopup in nested grid #85195

    Dimitar
    Participant

    Hi atomic,

    In your nested grid cellvaluechanged event handler, call event.stopPropagation() to prevent the event from bubbling to the parent grid, e.g.:

    grid.on('cellvaluechanged', function(event) {
        grid.jqxGrid('showvalidationpopup', 1, 2010, "test");
        event.stopPropagation();
    });

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.