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

[Solved] Hierarchial grid with mass update popup on column header

1 Answer 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Murali
Top achievements
Rank 1
Murali asked on 27 Oct 2014, 10:05 PM
We have a Flex app that is used internally and has a hierarchial grid with several options including context menu, popup editor on individual columns.
We are writing an app for external customers with limited functionality on the grid. But we need an option to mass update a particular column on the grid, either all rows or selected rows. See the attached png file for current implementation.

Instead of specifying columnMenu:true, we want to open an html template on the grid as model popup. Is there an way to do this on Kendo grid?
Thanks

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 29 Oct 2014, 01:46 PM
Hi Murali,

Although this behavior is not supported out of the box, it could be achieved using a custom solution. For example you can use context menu that pops over the Grid's columns (or column headers) and when the mass update option is selected - open a Window. You can then get the instance of the Grid and the targeted column and perform the mass updated by iterating over all (or the selected) DataSource items. For example:
var items = grid.dataSource.data(); //get all items
for(var i=0; i<data.length; i++){
   items[i].set(field, value);
}

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