Hi there,
It looks like I can't setup batch editing with a Grid/DataSource with grouped data. When it calls Grid._modelForContainer(container) which calls DataSource.getByUid(id) it does not return any values even though the uid is valid. It looks to me like getByUid does not handle grouped/nested data. When I step into the loop in the code below the data object has 2 items at the top level which are groups and then each of those has an array of items which are the data items inside that group.
Is there something I should be doing differently on the grid/datasource setup to make this work as I expected it to?
Thanks!
Matt
It looks like I can't setup batch editing with a Grid/DataSource with grouped data. When it calls Grid._modelForContainer(container) which calls DataSource.getByUid(id) it does not return any values even though the uid is valid. It looks to me like getByUid does not handle grouped/nested data. When I step into the loop in the code below the data object has 2 items at the top level which are groups and then each of those has an array of items which are the data items inside that group.
getByUid: function(id) { var idx, length, data = this._data; for (idx = 0, length = data.length; idx < length; idx++) { if (data[idx].uid == id) { return data[idx]; } }}Is there something I should be doing differently on the grid/datasource setup to make this work as I expected it to?
Thanks!
Matt