This topic contains 5 replies, has 4 voices, and was last updated by  admin 10 months, 3 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Custom Validator #121924

    joko.pitoyo
    Participant

    please add event onValidate:function(){

    if(datagrid__has_row && total_cost >0 ){
    return true;
    }
    return false;
    }

    the above event called to check if everithing is ok

    Custom Validator #121927

    Hi Joko,

    What are you trying to validate exactly in the Grid?

    Best regards,
    Svetoslav Borislavov
    jQWidgets Team
    https://www.jqwidgets.com

    Custom Validator #121933

    joko.pitoyo
    Participant

    helo,
    we want validate form fields and jqxgrid, if datagrid not empty

    Custom Validator #121946

    Hi Joko,

    Are you trying to validate inputs when you are editing a grid row or do you have a separated form that is independent of the grid?
    You can validate your fields with a change event or with a blur event.
    Please give me more information so I can help you.

    Best regards,
    Svetoslav Borislavov
    jQWidgets Team
    https://www.jqwidgets.com

    Custom Validator #134379

    smartcricpw
    Participant

    same issue, any solution for 2024

    Custom Validator #134384

    admin
    Keymaster

    Hi,

    We have validation function in the Grid.

    { text: 'Quantity', datafield: 'quantity', width: 70, cellsalign: 'right', columntype: 'numberinput',
        validation: function (cell, value) {
            if (value < 0 || value > 150) {
                return { result: false, message: "Quantity should be in the 0-150 interval" };
            }
            return true;
        }
    }
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.