jQWidgets Forums

jQuery UI Widgets Forums Grid Validation error at wrong location

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Validation error at wrong location #74279

    Bln79
    Participant

    Hello Folks,

    I am facing another problem: In a grid, I am using, I want to validate the input, when an inline-edit took place.
    Well, I do this with the “validation” property of the grid’s column and the code is executed and behaves as expected.

    The thing, which is wrong, is the position of the error-message-bubble. It is not shown on the cell, the validation failed, but on the upper left corner of the grid.

    Here comes the grid, I am using:

    $("#jqxgrid").jqxGrid(
            {
                width: '100%',
                autoheight: true,
                theme: 'bootstrap',
                source: dataAdapter,
                columnsheight: 40,
                columnsmenuwidth: 40,
                rowsheight: 34,
                pageable: true,
                pagermode: 'simple',
                columnsresize: true,
                editmode: 'selectedrow',
                editable: true,
                selectionmode: 'singlerow',
                columns: [
                    { text: 'ID', dataField: 'Id', cellsalign: 'right', editable: false, width: 30 },
                    { text: 'Name', dataField: 'Name', editable: false, width: '20%'},
                    {
                        text: 'Description', dataField: 'Description', editable: true, columntype: 'textbox',
                        initeditor: function (row, column, editor) {
                            editor.attr('maxlength', 255);
                        },
                        validation: function (cell, value) {
                            if (value.trim() == "")
                                return { result: false, message: "Description must not be empty." };
                            return true;
                        }
                    },
                    { text: 'Active', dataField: 'IsActive', columntype: 'checkbox',  align: 'center', cellsalign: 'center', width: 70 },
                    { text: 'Action', cellsrenderer: cellRenderer, align: 'center', editable: false, width: 100 }
                ]
            });

    Can anybody tell my, why this happens?

    Actually I am using version 3.8.1.

    Thanks in advance. 🙂

    Validation error at wrong location #74308

    ivailo
    Participant

    Hi Bln79,

    Thanks about the feedback.
    We know about this issue. It will be fixed in the next release.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.