jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Bug with Filter and Edit 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

    in reply to: Bug with Filter and Edit Bug with Filter and Edit #47140

    boteeka
    Participant

    I am currently using version 3.0.4 of jQWidgets. I have a similar problem as the one described here. I am using the grid with filtering enabled and also one column with checkboxes set as editable.

    Changing the state of a checkbox works fine as long as no filters are applied. I am listening on the ‘cellendedit’ event to hook in some state tracking logic of my own, unrelated to the grid. The problem is that the ‘event’ variable passed to the callback function listening to the ‘cellendedit’ event is supposed to have a property called ‘rowindex’, which it does and it has the correct value, but only if filtering is not active. Once filterings is activated, this ‘rowindex’ property always has ‘undefined’ as its value, no matter which row has been edited.

    This is only half of the problem. The other half is that the checkboxes disappear from all the rows when the ‘rowindex’ is undefined.

    I would really appreciate your help!

    Kind regards


    boteeka
    Participant

    Hi jqWidgets Team,

    Can you please change your mind about not implementing the per-page select all feature? Maybe even better would be to be able to restrict selection targets to visible rows only. That would, I guess, handle both paging, filtering and grouping as well, but I might be mistaken.

    Without this feature the checkbox selection mode has very little use. Also, it would be nice to have some events fired before and after selection actually occurs with possibility to intercept and cancel selection (in case of the ‘before’ event). The passed event should have a list of the row indexes to be / alreaqy selected.

    Thank you

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