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

Client edit with batch server Update in hierarchical grids

1 Answer 150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 22 Jun 2011, 08:35 PM
I have a hierarchical grid that has many top level rows, each top level row can be expanded to display 1-many child level rows. My question is the "Client edit with batch server Update" supported at the detail level (child level). Also the demo for "Client edit with batch server Update" requires a double click in the cell to edit. Can all the rows in a particular column be set to edit when the child rows are displayed.

The Attached image is a sample of what I'm doing and I would like to edit the values in the second column (Value1-n) in batch on the client.

Is there a sample available that would demonstrate this functionality.

Thanks

Marc 

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 27 Jun 2011, 05:16 PM
Hello Marc,

 It depends how you have configured the hierarchy in the grid. In order to use the client-side batch update functionality you have to handle a couple of client-side events for the rows of the respective table that will be updated. In the case of a standard declarative hierarchy the client-side events will be fired for all the rows in the grid so you will have to distinguish which one are from the desired detail table (e.g. by setting name for the inner tables). Also as you can see from the batch update demo the edit mode for the cell is switched by simply hiding and showing controls in the cell so you will need to traverse all the cells for the respective column in the desired detail table and put them in edit mode as shown in the demo. If you have configured the hierarchy by using another RadGrid inside a NestedViewTemplate then you can directly wire up the client-side events only for the respective inner grid and put the desired cells in edit mode. You can also check out the grid's client side API for additional reference.
In any case you will need to add some custom logic that handles the requirements in your particular scenario that is why we do not have a demo showing all the desired features.

Regards,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Marc
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or