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

GridViewHeaderMenu Working?

1 Answer 32 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Loring Vogel
Top achievements
Rank 1
Loring Vogel asked on 30 Jun 2009, 12:07 AM
I am trying to add the header context menu to a grid using the code you show in your example at http://demos.telerik.com/silverlight/#GridView/HeaderContextMenu

I get the following xaml error

Error 6 The property 'IsEnabled' does not exist on the type 'RadGridView' in the XML namespace 'clr-namespace:Telerik.Windows.Controls.GridView.HeaderMenu'. C:\archive\SilverlightClient\Silverlight\...

when i do so.

why? 

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 30 Jun 2009, 06:57 AM
Hi Loring,

Looks like XAML parser in Silverlight 3 requires get method for attached properties - in this case:

        public static bool GetIsEnabled(DependencyObject dependencyObject)
        {
            return (bool)dependencyObject.GetValue(IsEnabledProperty);
        }

You can find attached small project.

Best wishes,
Vlad
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.
Tags
GridView
Asked by
Loring Vogel
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or