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

How to use a bit field as a Parent Table Relation Key.

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 08 Jul 2016, 02:18 PM

Hi, I have a nested grid.
I need to pass my bitfield as a key in the Parent Table Relation Key.
Like :

 <ParentTableRelation>
 <telerik:GridRelationFields DetailKeyField="MSE_PK" MasterKeyField="MSE_PK" />  
 <telerik:GridRelationFields
    DetailKeyField="(MST_BitField & MSE_myBit)"
         MasterKeyField="MSE_myBit" />
 </ParentTableRelation>

I need a way to to Something like this is my 'DetailKeyField' .

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 13 Jul 2016, 10:56 AM
Hi Pierre,

The DetailKeyField property should point the filed in the detail table that should be equal to the foreign key column in the table. Check out the following resources that describe how you can configure the hierarchy relations for the grid.


If you would like to use more complex logic for the detail tables you can define the hierarchy relations programmatically as illustrated below:



Regards,
Viktor Tachev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Pierre
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or