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

GridViewHeaderMenu in child GridView

3 Answers 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 28 Mar 2012, 11:25 PM
Telerik, I am using the RadGridView and am specifying TelerikGridViewHeaderMenu:GridViewHeaderMenu.IsEnabled="True".  In this GridView I am also utilizing the HierarchyChildTemplate.  Within the DataTemplate in the HierarchyChildTemplate I am utilizing another GridView for related details.  The problem is with this child GridView and the GridViewHeaderMenu.  When I right click on the Header of the child GridView I am getting the GridViewHeaderMenu for the parent GridView.  I set TelerikGridViewHeaderMenu:GridViewHeaderMenu.IsEnabled="False" in the child GridView declaration but this had no effect.

How can I stop the child GridView(s) from showing the parent GridViewHeaderMenu?

Thanks

Paul

3 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 29 Mar 2012, 09:41 AM
Hello Paul,

May you share your code ?

Kind regards,
Pavel Pavlov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Paul
Top achievements
Rank 1
answered on 03 Apr 2012, 06:11 PM
I have created ticket 530128.

Thanks
Paul
0
Paul
Top achievements
Rank 1
answered on 04 Apr 2012, 02:31 PM
For anyone else interested, the solution was implemented as follows:

 

if (cell.ParentOfType<GridViewDataControl>() != null

&& !cell.ParentOfType<

GridViewDataControl>().HasHierarchy)

{

menu.IsOpen =

false;

 

return;

}

Tags
GridView
Asked by
Paul
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Paul
Top achievements
Rank 1
Share this question
or