jQWidgets Forums

jQuery UI Widgets Forums Grid Bug with Filter and Edit

This topic contains 17 replies, has 4 voices, and was last updated by  Peter Stoev 11 years, 4 months ago.

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
  • Bug with Filter and Edit #47142

    Peter Stoev
    Keymaster

    Hi boteeka,

    We will check whether there’s something wrong with the “cellendedit” parameter. I do not know for what purpose you use the “rowindex” parameter, but you should not call a Grid method with Undefined value, if Number is expected

    Best Regards,
    Peter Stoev

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

    Bug with Filter and Edit #47177

    boteeka
    Participant

    Hi Peter,

    I was referring to this:

    self.$grid.on(‘cellendedit’, function (event) {
    if (event.args.datafield === ‘assign’) {
    if (event.args.value === true) {
    //DO A with event.args.rowindex
    } else if (event.args.value === false) {
    //DO B with event.args.rowindex
    }
    }
    });

    So, the parameter called ‘event’ passed to the callback function has a property called ‘args’, which in turn has a property called ‘rowindex’. This ‘rowindex’ property should indicate the row number where the cell has been edited, right?

    So this is not about calling any Grid method. This is attaching an event handler to an event which is triggered when the editing of a cell is finished (internally in jqxGrid). The parameter passed to the callback function also is up to jqxGrid’s internals. If the rowindex does have the correct value when filtering is not active and it does not otherwise, I think it’s a bug. Or at least the documentation should mention why is this the case. Anyway, either if it’s a bug or just simply how things work, it does not seem to be correct.

    This is taken from the demo section of your site:

    cellendedit

    This event is triggered when a cell’s edit operation has ended.
    Code example

    Bind to the cellendedit event by type: jqxGrid.

    $(“#jqxGrid”).on(‘cellendedit’, function (event)
    {
    var column = args.datafield;
    var row = args.rowindex;var value = args.value;
    var oldvalue = args.oldvalue;
    });

    Kind regards

    Bug with Filter and Edit #47180

    Peter Stoev
    Keymaster

    Hi boteeka,

    As I wrote, we will check this scenario and if we find that the event params are not correct, we will fix it.

    Best Regards,
    Peter Stoev

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

Viewing 3 posts - 16 through 18 (of 18 total)

You must be logged in to reply to this topic.