Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Unable to come out from the window

    Hi,
    Iam using smartgwt pro, browser vVersion 22.0.1229.96 m.

    Iam using smartgwt ListGrid with ListGridFied. I added validators for ListGridField. So when i add entry against to validator its giving error icon.
    Now i will add one record to ListGrid via listgrid.startEditingNew();
    If i tried to close the window without entering anything in that record its not allowing me to close the window.
    is there any way to close the window without entering the data.
    below is my code.

    RegExpValidator Validator = new RegExpValidator();
    Validator .setExpression(REG_EXP);
    Validator .setStopIfFalse(true);
    Validator .setStopOnError(true);

    final ListGridField field= new ListGridField(
    "Address", "Field Name");
    field.setRequired(true);
    field.setAlign(Alignment.CENTER);
    field.setValidators(Validator);

    please help me achieve this.

    #2
    You've explicitly set stopOnError, which is documented to prevent further navigation until the error is corrected. If you don't want this behavior, don't set stopOnError.

    Comment

    Working...
    X