Announcement

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

    How can CustomValidator determine the ListGrid row number?

    I have a custom validator on a ListGrid field that needs to know the row number of the ListGrid record it is validating. The getRecord() method returns a Record with the values from that row, but ListGrid.getRecordIndex(getRecord()) returns -1 and I don't see any other way to get at the row number.

    #2
    You could try grid.getDataAsRecordList();
    If indexOf() doesn't find the record, try findIndex() instead.

    Comment

    Working...
    X