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

memu on header

2 Answers 65 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
IxReveal
Top achievements
Rank 1
IxReveal asked on 20 Jan 2011, 06:32 PM
Is there  a way to easily attach a template to the header itself. Can u point me to an example that could help. we want to attach context menus to the headers so the user can right click. I found the code for your header context menu for a gridview but this places all the menu handlers in the attached behavior.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Jan 2011, 08:10 AM
Hello,

 You can use Header property directly or re-template the header row in Blend.

Regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
IxReveal
Top achievements
Rank 1
answered on 23 Jan 2011, 06:55 PM

 

 Thanks for the template issue, I tried using the attached behavior by adding

telerikGridViewHeaderMenu:GridViewHeaderMenu.IsEnabled="True"

Then I modified the code and changed all references of GridView to RadTreeListView and then when I click on a heading I get the exception:

Element is already a child of another element

Do u have an example that adds memus to the header of a TreeListView

Tags
TreeListView
Asked by
IxReveal
Top achievements
Rank 1
Answers by
Vlad
Telerik team
IxReveal
Top achievements
Rank 1
Share this question
or