Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

How To: Bulk edit new unsaved records in ListGrid

$
0
0
We've managed to build bulk edit options for many of our ListGrids by using selectionAppearance("checkbox") along with code such as:

Code:

var newPrice = userInputPrice;

for each record in grid.getSelectedRecords() {
  isc.addProperties( record, { price: newPrice } );
  grid.updateData( record );
}

We now have a grid where users are doing something akin to the mass update example. They are adding several new records, removing some, and then optionally changing the price on several records and this change price function needs to work like a bulk edit.

However, newEditRows are not selectable and don't return as a part of getAllSelectedRecords.

We are able to getAllEditRows, but we are unable to determine which editRows are 'selected'.

Is there some way for a user to "select" new unsaved rows in a grid?

Viewing all articles
Browse latest Browse all 4756

Trending Articles