Announcement

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

    ListGridField validation for not edited fields

    SmartGWT 3.1 LGPL
    All browsers

    Hi guys,

    I have a ListGrid with a 'required' field. I set the data via the ListGrid.setData(Record[]).

    The records are constructed manually and do not contain values for the 'required' field.

    If I don't edit any values and execute ListGrid.validateRow, no validators check that values are not specified for the 'required' field.
    According to the documentation, it is the expected behavior, as the user did not actually changed anything and the initial data is assumed to be valid. However, in my case, the initial data is simple a 'template' that is supposed to be filled out and submitted.

    Could you please advise how validation can be enforced for not edited cells as well or, maybe, there's another way of doing this?

    Thank you.

    #2
    Hi serge_hid,

    did you already see http://www.smartclient.com/smartgwte...edRecords.html?

    Best regards,
    Blama

    Comment


      #3
      Hi Blama,

      Thanks a lot for the link - I didn't see it before.

      I solved my problem by using ListGrid.setEditValue(...), but will consider re-desigтing the app as advised.

      Comment

      Working...
      X