Hi,
How can we Incorporate the RadContextMenu for StackedBar Chart.
I tried to use the example given in the help for Bar Chart, but result in invisible Bars with context menu is opening on right click of it.
Please let me know what are changes I need to do on the Style, so that the bars get visible.
Here is the code for the Style:
Please reply as soon as possible.
Thanks.
How can we Incorporate the RadContextMenu for StackedBar Chart.
I tried to use the example given in the help for Bar Chart, but result in invisible Bars with context menu is opening on right click of it.
Please let me know what are changes I need to do on the Style, so that the bars get visible.
Here is the code for the Style:
<Style TargetType="telerik:StackedBar" x:Key="CommonContextMenu"> <Setter Property="Template" > <Setter.Value> <ControlTemplate TargetType="telerik:StackedBar"> <Canvas Opacity="0" x:Name="PART_CanvasContainer"> <telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu ItemClick="RadContextMenu_ItemClick"> <telerik:RadMenuItem Header="Go To Home Page" /> <telerik:RadMenuItem Header="Go To Employee Page" /> </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu> <Rectangle x:Name="PART_DefiningGeometry" Height="{TemplateBinding ItemActualHeight}" Width="{TemplateBinding ItemActualWidth}" Style="{TemplateBinding ItemStyle}" RadiusX="{StaticResource BarRadiusX}" RadiusY="{StaticResource BarRadiusY}" /> <Rectangle Height="{TemplateBinding ItemActualHeight}" Width="{TemplateBinding ItemActualWidth}" RadiusX="{StaticResource BarRadiusX}" RadiusY="{StaticResource BarRadiusY}" OpacityMask="{StaticResource BarOpacityMaskBrush}" Fill="{StaticResource BarMaskBrush}" /> <Rectangle Height="{TemplateBinding ItemActualHeight}" Width="{TemplateBinding ItemActualWidth}" RadiusX="{StaticResource BarRadiusX}" RadiusY="{StaticResource BarRadiusY}" Fill="{StaticResource BarTopMaskBrush}" /> <Canvas.RenderTransform> <ScaleTransform x:Name="PART_AnimationTransform" ScaleY="0" /> </Canvas.RenderTransform> </Canvas> </ControlTemplate> </Setter.Value> </Setter> </Style>Please reply as soon as possible.
Thanks.