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

unable to bind parent header in treeview

3 Answers 54 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
naga kiran
Top achievements
Rank 1
naga kiran asked on 21 Aug 2009, 05:16 AM
I build a list asitemsource for treeview.  i am able to see the child items but not able to seethe  header of the Parent elements.

Here posting mycode:

page.xaml:
--------------
<
telerikNavigation:RadTreeView x:Name="radTreeView" Grid.Row="1" >

 <telerikNavigation:RadTreeView.ItemTemplate> 

<core:HierarchicalDataTemplate x:Name="datatemplate" ItemsSource="{Binding DataPoints}"> 

<TextBlock Text="{Binding DisplayName}"/> 

</core:HierarchicalDataTemplate>

 </telerikNavigation:RadTreeView.ItemTemplate>

 </telerikNavigation:RadTreeView>


page.xaml.cs:
------------------------
radtreeview.itemsSource=data;//include the child list object(DataPoints) in this  object 

3 Answers, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 21 Aug 2009, 10:57 AM
Hello naga,

I already answered to your other ticket on the same topic. Please refer to the other ticket for the answer.

Sincerely yours,
Tihomir Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Heather
Top achievements
Rank 1
answered on 28 Oct 2009, 03:12 PM
Could you post a link to that answer?  I searched and could not find anything and have a similar issue.
0
Miroslav
Telerik team
answered on 31 Oct 2009, 05:30 PM
Hi Heather,

Here is a link to the forum post that Tihomir had in mind:

http://www.telerik.com/community/forums/silverlight/general-discussions/problem-in-treeview.aspx

If you have issues with binding the TreeView, could you please share some details?

- Are you using ContaienrBindings? They will not work for binding the header, you need to use the ItemTemplate.
- Do you see any errors in the Output window while debugging. Binding errors will normally surface there.
- Can you share some of your xaml and/or code?

Best wishes,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
naga kiran
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Heather
Top achievements
Rank 1
Miroslav
Telerik team
Share this question
or