jQWidgets Forums

jQuery UI Widgets Forums Grid Cell validation bug?

This topic contains 4 replies, has 2 voices, and was last updated by  ioana 11 years, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Cell validation bug? #25552

    ioana
    Participant

    Hi,

    I have a cell validation in a grid.
    Basically, depending on a certain condition, on “cellendedit” event the “showcellerror” method is called in order to display an error message.

    grid.on('cellendedit', function(event) {
    var args = event.args;
    var oldvalue = args.oldvalue;
    var newvalue = args.value;
    if (oldvalue != newvalue) {
    var cellType = self.getCellType(args.rowindex, args.datafield);
    var valid = self.validateValueForCellType(newvalue, cellType);
    if (valid) {
    self.changecell(args, oldvalue, newvalue, grid);
    } else {
    self.showcellerror(args, grid, self.cellValidationError("numeric"));
    }
    }
    });

    It works fine until the last cell in the grid, where the message is not displayed.
    I have debugged, and the condition is met, the code is executed.

    Is it possible that this is a grid bug?

    Thanks,
    Ioana

    Cell validation bug? #25581

    Peter Stoev
    Keymaster

    Hi,

    We cannot help you about that because we do not have such API in our Grid. showcellerror is not our method from our API, changecell is not too and getCellType also. validateValueForCellType is not from our API, too.

    Best Regards,
    Peter Stoev

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

    Cell validation bug? #25607

    ioana
    Participant

    Hi again,

    getCellType is not important. It is the way to check what kind of value is expected.
    validateValueForCellType is checking the the value is of expected type.

    showcellerror is using your API:

    	self.showcellerror = function(args, grid, message) {
    grid.jqxGrid('showvalidationpopup', args.rowindex, args.datafield,
    message);
    }

    For all other cells in the grid: condition is met, code is executed, message is displayed.
    For the last cell in the grid: the condition is met, the code is executed, but the message is not displayed.

    All cells are expecting the same type of value: a numeric value.
    It seems that there is a display issue. Probably the <div style="overflow: hidden” …./>

    Regards,
    Ioana

    Cell validation bug? #25640

    Peter Stoev
    Keymaster

    Hi Ioana,

    We will test our “showvalidationpopup” method when the validation message should be displayed for the last row. If that is an issue on our side, we will resolve it as soon as possible.

    Best Regards,
    Peter Stoev

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

    Cell validation bug? #25669

    ioana
    Participant

    Hi,

    thank you :).

    Regards,
    Ioana

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

You must be logged in to reply to this topic.