Uses for DataKeyNames and ParentDataKeyNames Properties

4 posts, 0 answers
  1. SHP
    SHP avatar
    8 posts
    Member since:
    Dec 2010

    Posted 16 May 2011 Link to this post

    I'm not sure I understand the potential uses of these properties.  They can take multiple values but I'm not sure how that is used by the control.  Are they to be used for multiple levels of self-referencing?  If so that would be nice and I'd like to see an example of that.  Currently I have to bind to data that has four levels in the hierarchy.  I am doing the work in the database to put results into a self-referencing ID-ParentID format.  I was hoping there was a way to tell the control that there were several levels of child-parent keys.  This appears like it might be the way but I haven't seen any examples.  Am I misinterpreting the uses of these properties?
  2. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 19 May 2011 Link to this post

    Hello Cevin,

    The ParentDataKeyNames and DataKeyNames properties define the hierarchical relations in the RadTreeList. Please examine this help topic in order to learn more about the control's structure.
    You can see the live demos to see how it works.

    Do not hesitate to get back to us if any further questions arise.

    Kind regards,
    Mira
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Emad
    Emad avatar
    13 posts
    Member since:
    Oct 2011

    Posted 16 Feb 2012 Link to this post

    Hi,

    how can I use treelist when I have parent key two columns ?

    Regards,
  5. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 17 Feb 2012 Link to this post

    Hello,

    The ParentDataKeyNames and DataKeyNames properties are arrays, so they can hold multiple data-field names.

    I hope this helps.

    Regards,
    Mira
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top