jQWidgets Forums

jQuery UI Widgets Forums DataTable jqxDataTable Validation Message clear

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 1 month ago.

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

  • chengamkathiravan
    Participant

    Hi,

    We are using jqxdatatable in our application. In one of scenario we are validating the Phone texbox while editing as follows.

    1) If we are not enter any value in the textbox then we are setting message as
    return { message: “Property value is required”, result: false };

    2) After entering phone number, then we are validating that phone number against regex expression then we are setting message as
    if (rows.ValidationRegEx != undefined && rows.ValidationRegEx != ” && rows.ValidationRegEx != “NULL”) {
    var regex = new RegExp(rows.ValidationRegEx);
    if (!regex.test(fieldValue)) {
    isValid = false;
    return { message: “Property value is invalid phone number”, result: false };
    }
    }

    Our requirement:-
    1)In this case we are facing one problem, we need refresh “message” always. Now both messages are overlapping(recent message is going back to first message). How to clear message before setting new error message.

    In current scenario we are getting as “property value is required one number”….Here first message(Property value is required) and second message (“Property value is invalid phone number), Second message is going back of first message).

    How to clear the message before setting first message in jqxdatatable ?


    Peter Stoev
    Keymaster

    Hi chengamkathiravan,

    Unfortunately, it is not possible to clear or update the messages through API. These are updated only when the validation fails.

    Best Regards,
    Peter Stoev

    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.