This is a migrated thread and some comments may be shown as answers.

Batch Edit Grouped Data

3 Answers 156 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 20 Apr 2012, 08:31 PM
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.

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

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 24 Apr 2012, 10:10 AM
Hello Matt,

I suspect that the DataSource associated with the Grid widget has serverGrouping enabled? Unfortunately, currently having both editing and server grouping is not supported. Thus you should consider if possible in your scenario having DataSource to handle the grouping instead.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Matt
Top achievements
Rank 1
answered on 24 Apr 2012, 04:16 PM
Hi,

Unfortunately grouping on the client isn't an option since we have pretty large data sets and don't want to send it all over the wire at once.  Hence, we have Server Paging, Grouping, Filtering, Aggregates, etc.  Is there any plan to support this in a future release?

Thanks,
Matt
0
Rosen
Telerik team
answered on 25 Apr 2012, 04:28 PM
Hi Matt,

Although, we will do our best to add support for this scenario, I cannot provide you with concrete time frame when this will be included in our product. 
Please excuse us for the inconvenience.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Matt
Top achievements
Rank 1
Share this question
or