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

[Solved] Different Child Grid Structurs How to

4 Answers 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
pavan pemmaraju
Top achievements
Rank 1
pavan pemmaraju asked on 02 Oct 2009, 08:59 PM
Hello Guys,

I need to display a radgrid for which I do not know the structure of child grid at design time.

For example consider I have a grid whose row are say Customers, Orders, Items

The child grids for each of these would have a different structure. Therefore based on the parent item, I would need to create a child gridview and add different columns to it. I am not sure how do I go about doing this because when I do not declare any detail table girds during design time, I do not even see the expand column, so I can't even generate a onChildtabledatabind event. Please help.

Thanks,
Pavan.

4 Answers, 1 is accepted

Sort by
0
pavan pemmaraju
Top achievements
Rank 1
answered on 06 Oct 2009, 02:56 AM
Telerik,

Please let me know if its even possible.

Thanks,
Pavan.
0
Yavor
Telerik team
answered on 07 Oct 2009, 10:45 AM
Hi pavan,

Basically, having such a variable grid hierarchical structure for the control is not supported. This can be done on first pass, but such a structure cannot be altered on subsequent page loads.
Another option is to have the possible structures pre-declared in separate grid instances, for example on different user controls/panels, and loading these dynamically, depending on the user selection, or other requirements.
I hope this information helps.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
pavan pemmaraju
Top achievements
Rank 1
answered on 07 Oct 2009, 03:17 PM
Can I add griddataitem either during an ItemDataBound or ItemCommand Event ?

For example, I have a row with button in it. When user hits this row, I want to catch this in the ItemCommand and add a row right beneath the row in which the button resided. Please note that I would like to add not show or hide.

Thanks,
Pavan.
0
Yavor
Telerik team
answered on 12 Oct 2009, 08:14 AM
Hi pavan,

Adding items in such a manner would not be possible. The structure of the control must be declared in a manner similar to the "Defining Structure" options, which are part of the online help:

http://www.telerik.com/help/aspnet-ajax/introduction.html

I hope this information helps.

Sincerely yours,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
pavan pemmaraju
Top achievements
Rank 1
Answers by
pavan pemmaraju
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or