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

Edit Multiple Rows from Single Input?

1 Answer 217 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 28 Jan 2013, 03:47 PM
Hey everbody,

I've got the unique problem of determining an easy-to-understand, concise way to allow our users to edit a value for one or more columns across multiple selected rows.

I've heard from project stakeholders that they particularly like the approach which mint.com takes in allowing for multiple row edits.  This is a slide-out from beneath the header which mimics the row style of the given grid.  In place of column values, there are controls for editing, which then copy values to the selected columns and submit the edits.

I've seen the technical portion of this work in the grid control, however I haven't seen anything remotely like the presentation portion.  I took a stab at getting a simple plugin to overlay the grid, but kept getting interesting bounding issues in trying to determine where the columns actually began and ended, leading to the pseudo-columns we were creating to display far out of whack with where the actual columns displayed.

Does Kendo have any support for multiple editing beyond batch editing (more of a select once - publish many pattern)?  Or is there support for real-time monitoring of the offset of cell bounds and table width?  Or in order to accomplish this, will I have to hack together some Javascript to get things displaying in the right location?

Any ideas on what the best way to accomplish this with the control would be appreciated.

Thanks!
Josh

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 30 Jan 2013, 04:07 PM
Hi Joshua,

I am afraid that editing in 'select once - publish many' pattern is not supported by Kendo Grid.
Generally speaking, if you want to edit the value of the Grid via JavaScript you should use the DataSource API and/or set method of the Model. There is no need to modify the column html - those changes will not reflect in the DataSource and respectively will not get synchronized with the server.

Best regards,
Alexander Valchev
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
Joshua
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or