This is a migrated thread and some comments may be shown as answers.
GridRelationFields two fields
1 Answer 20 Views
This is a migrated thread and some comments may be shown as answers.
Shehab
Top achievements
Rank 1
Shehab asked on 04 Aug 2008, 05:48 PM
Hello All,

Is it possible you pass two different fields to establish the relationship between the grid and the detailtables? like in this example I want to be able to pass two fields instead of one.

                        <ParentTableRelation> 
                            <radG:GridRelationFields DetailKeyField="DepID" MasterKeyField="ContactID" /> 
                        </ParentTableRelation> 

1 Answer, 1 is accepted

Sort by
0
Accepted
Veli
Telerik team
answered on 05 Aug 2008, 08:22 AM
Hi Shehab,

Please find attached a sample page demonstrating how RadGrid can have a hierarchy setup using two relation keys instead of one. The only requirement is that both keys are specified in the DataKeyNames collection of the MasterTableView and DetailTableView.

Kind regards,
Veli
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Shehab
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or