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

Uses for DataKeyNames and ParentDataKeyNames Properties

3 Answers 150 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
SHP
Top achievements
Rank 1
SHP asked on 16 May 2011, 07:37 PM
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?

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 19 May 2011, 02:49 PM
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.

0
Emad
Top achievements
Rank 1
answered on 16 Feb 2012, 08:22 PM
Hi,

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

Regards,
0
Mira
Telerik team
answered on 17 Feb 2012, 02:52 PM
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 >>
Tags
TreeList
Asked by
SHP
Top achievements
Rank 1
Answers by
Mira
Telerik team
Emad
Top achievements
Rank 1
Share this question
or