Announcement

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

    DataSource correct usage

    All

    Is this the correct way to use the DataSource object for inserting and updating objects.

    Code:
    if(this.ListGrid().getDataAsRecordList().contains(record)) {
       this.DataSource().updateData(record);
    } else {
       this.DataSource().addData(record);
    }
    And the ListGrid is setup as follows

    Code:
    this.ListGrid.setDataSource(datasource);
Working...
X