Border Style="{StaticResource BorderCombo_Details}" Grid.Column="2" Grid.Row="3" Width="200" HorizontalAlignment="Left" VerticalAlignment="Top">
<telerikInput:RadComboBox x:Name="cmbFamilyCompositionWithSen" TabIndex="43" ToolTip="{x:Static Resx:Strings.Mselects_Tolltip}" Style="{StaticResource RadComboBoxCheack_Details}"
Validation.Error="Validation_Error" IsDropDownOpen="True" MaxDropDownHeight="40" StaysOpenOnEdit="True" FlowDirection="RightToLeft">
<telerik:RadComboBox.SelectionBoxTemplate>
<DataTemplate>
<TextBlock Text="{x:Null}"/>
</DataTemplate>
</telerik:RadComboBox.SelectionBoxTemplate>
<telerik:RadComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox IsChecked="{Binding Path=FC_IsChecked,Mode=OneWay}" x:Name="cbxFamilyCompositionWithSen"
Tag="{Binding Path=FC_ID}" GotFocus="cbxOfCmb_GotFocus" Checked="AddRemoveFamliyCom" Unchecked="AddRemoveFamliyCom"/>
<TextBlock Text="{Binding Path=FC_Desc}"/>
</StackPanel>
</DataTemplate>
</telerik:RadComboBox.ItemTemplate>
</telerikInput:RadComboBox>
</Border>
ItemMapping itemMap = new ItemMapping("StockValue", DataPointMember.YValue);seriesMapping.ItemMappings.Add(itemMap);itemMap = new ItemMapping("XCat", DataPointMember.XCategory);seriesMapping.ItemMappings.Add(itemMap);radChart.DataBound += (o, e) =>{ TickPointCollection tickPoints = radChart.DefaultView.ChartArea.AxisX.TickPoints; if (tickPoints != null) { foreach (TickPoint point in tickPoints) { // don't show a label if it has been marked with an X to hide it if (point.Label.Contains("X")) { point.Label = " "; // THIS IS HAPPENING IN DEBUG - so why do they show on the chart? } else { point.Label = point.Label; // only a few qualify to get here and thus keep their labels } } }};// Set font type and size in TextBlockstring fontName = "Verdana";int fontSize = 12;System.Windows.Media.FontFamily fontFamily = new System.Windows.Media.FontFamily(fontName);TextBlock tagBlock = new TextBlock{ Background = new SolidColorBrush(Colors.LightGoldenrodYellow), FontFamily = fontFamily, FontSize = fontSize, Text = tagConent};// Get the size of TextBlocktagBlock.Measure(new System.Windows.Size(Double.PositiveInfinity, Double.PositiveInfinity));System.Windows.Size size = new System.Windows.Size(tagBlock.DesiredSize.Width, tagBlock.DesiredSize.Height);// Create an InlineUIContainer containing the TextBlockTelerik.Windows.Documents.Model.InlineUIContainer tagContainer = new Telerik.Windows.Documents.Model.InlineUIContainer(tagBlock, size);// Insert the InlineUIContainer into the caret position radRichTextBox1.InsertInline(tagContainer);Hi,
I created RadMenu dynamically using HierarchicalDataTemplate
using following code.
<HierarchicalDataTemplate x:Key="MenuItemTemplate" ItemsSource="{Binding SubItems}"> <TextBlock Text="{Binding Text}" /> </HierarchicalDataTemplate>
<telerik:RadMenu x:Name="radMenu" Height="22" VerticalAlignment="Top" Orientation="Horizontal" ItemTemplate="{StaticResource MenuItemTemplate}" ItemClick="OnRadMenuItemClick" />
but in code behind of the OnRadMenuItemClick Event i am unable to find out name of the menu item that clicked.private void OnRadMenuItemClick(object sender, RadRoutedEventArgs e) { RadMenuItem item = e.OriginalSource as RadMenuItem; if (item != null) { switch (item.Name) { } } }
when i click on menu item .. item.Name allways comming as null.
can one please help me how to get the name of the menu item that clicked
but it is working for statically developed radmenu
Thanks
Rama