Skip to content Skip to sidebar Skip to footer

Assigning Selected Rows As Other Grid Datasource

I am working on setting up a scenario as following: 1) User is shown existing results on first grid 2) User can select multiple results and click an 'Edit' button which will extrac

Solution 1:

The following example...

http://dojo.telerik.com/EkiVO

...is a modified version of...

http://docs.telerik.com/kendo-ui/framework/datasource/crud#examples

A couple of notes:

  • it matters if you are adding plain objects to the second Grid's dataSource (gridConfig.dataSource.add(dataItem).toJSON();), or Kendo UI Model objects (gridConfig.dataSource.add(dataItem);). In the first case, you will need to pass back the updated values from Grid2 to Grid1, otherwise this will occur automatically;
  • there is no need to refresh() the second Grid after adding, removing or changing its data items
  • both Grid dataSources must be configured for CRUD operations, you can follow the CRUD documentation
  • the Grid does not persist its selection across rebinds, so if you want to preserve the selection in the first Grid after some values have been changed, use the approach described at Persist Row Selection

Post a Comment for "Assigning Selected Rows As Other Grid Datasource"