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

Dynamically Add DetailTable

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 06 May 2008, 10:33 AM
Hi,

Currently I have a RAD grid binding its detail tables perfectly, but what I now require is the ability to dynamically add detail table's to specific rows in the table at the same hierachical level as the existing table. The way I have implemented thus far is use a button on each grid row that fires a javascript event which in theory should add another detail table to the row and bind it based on the same format of information in the existing detail table.

It seems that the RAD grid does not support the addition of detail tables on a per row basis, is this correct?

Kind regards,

Dave

1 Answer, 1 is accepted

Sort by
0
Nikita Gourme
Top achievements
Rank 1
answered on 06 May 2008, 10:54 AM
I am not aware of built-in method to add detail tables to a particular row, Dave. Your method may work the first time, however I am not sure whether the viewstate of the control will remain intact after post to the server. May be the more bullet-proof approach is to have template for the respective child table:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Hierarchy/NestedViewTemplate/DefaultCS.aspx

and show/hide elements of that template dynamically.

Nikita
Tags
Grid
Asked by
Dave
Top achievements
Rank 1
Answers by
Nikita Gourme
Top achievements
Rank 1
Share this question
or