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

2 posts, 0 answers
  1. Pierre
    Pierre avatar
    52 posts
    Member since:
    Jun 2016

    Posted 08 Jul Link to this post

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

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

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


  2. Viktor Tachev
    Viktor Tachev avatar
    1445 posts

    Posted 13 Jul Link to this post

    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:

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top