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

Programmatically remove Parent Table Relations from grid

1 Answer 10 Views
Grid
This is a migrated thread and some comments may be shown as answers.
andieje
Top achievements
Rank 1
andieje asked on 21 Jul 2009, 03:18 PM
Hi

I would like to have a page where the user fills in a form which populates the grid with data. One of the options on the form would be 'show details' If this option is not ticked i would then chose not to populate the details table and not to show the expand/collapse column.

I am thinking i might be able to achieve this by programmatically removing the parent table relations from the grid in the page load event when the page is posted back but I don't know how to do this.

thanks

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 24 Jul 2009, 02:24 PM
Hello andieje,

I would suggest that you bind your grid programmatically, through the NeedDataSource and DetailTableDataBind events. In this case you do not need ParentTableRelations but you are manually assigning data source for the detail tables.
Find more information on RadGrid hierarchy programmatic data-binding here.

Sincerely yours,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
andieje
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or