| <Window |
| x:Class="RadGridViewTest.Window1" |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
| xmlns:local="clr-namespace:RadGridViewTest" |
| Title="Window1"> |
| <Grid> |
| <telerik:RadGridView |
| x:Name="rgv" |
| AutoGenerateColumns="False" DataLoading="RadGridView_DataLoading"> |
| <telerik:RadGridView.Columns> |
| <telerik:GridViewDataColumn UniqueName="Column1" Header="Column 1" /> |
| <telerik:GridViewDataColumn UniqueName="Column2" Header="Column 2" /> |
| </telerik:RadGridView.Columns> |
| </telerik:RadGridView> |
| </Grid> |
| </Window> |
| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Text; |
| using System.Windows; |
| using System.Windows.Controls; |
| using System.Windows.Data; |
| using System.Windows.Documents; |
| using System.Windows.Input; |
| using System.Windows.Media; |
| using System.Windows.Media.Imaging; |
| using System.Windows.Navigation; |
| using System.Windows.Shapes; |
| using System.Collections; |
| using System.Collections.ObjectModel; |
| using Telerik.Windows.Controls.GridView; |
| using Telerik.Windows.Data; |
| using Telerik.Windows.Controls; |
| namespace RadGridViewTest |
| { |
| /// <summary> |
| /// Interaction logic for Window1.xaml |
| /// </summary> |
| public partial class Window1 : Window |
| { |
| public Window1() |
| { |
| InitializeComponent(); |
| ObservableCollection<Column> Columns = new ObservableCollection<Column>(); |
| ObservableCollection<ChildGridColumn> ChildGridColumns = new ObservableCollection<ChildGridColumn>(); |
| for (int i = 0; i < 100; i++) |
| ChildGridColumns.Add(new ChildGridColumn(i)); |
| for (int i = 0; i < 100; i++) |
| Columns.Add(new Column(i, i, ChildGridColumns)); |
| this.rgv.ItemsSource = Columns; |
| GridViewTableDefinition gvtd = new GridViewTableDefinition(); |
| gvtd.Relation = new PropertyRelation("ChildGridColumns"); |
| this.rgv.ChildTableDefinitions.Add(gvtd); |
| } |
| private void RadGridView_DataLoading(object sender, Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs e) |
| { |
| GridViewDataControl dataControl = (GridViewDataControl)sender; |
| if (dataControl.ParentRow != null) |
| { |
| dataControl.ShowColumnFooters = true; |
| dataControl.AutoGenerateColumns = false; |
| dataControl.Columns.Add(new Telerik.Windows.Controls.GridViewDataColumn() |
| { |
| UniqueName = "ChildColumn1", |
| Header = "Column 1" |
| }); |
| dataControl.Columns.Add(new Telerik.Windows.Controls.GridViewDataColumn() |
| { |
| UniqueName = "ChildColumn2", |
| Header = "Column 2" |
| }); |
| dataControl.Columns.Add(new Telerik.Windows.Controls.GridViewDataColumn() |
| { |
| UniqueName = "ChildColumn3", |
| Header = "Column 3" |
| }); |
| } |
| } |
| } |
| public class Column |
| { |
| public Column(int Column1, int Column2, ObservableCollection<ChildGridColumn> ChildGridColumns) |
| { |
| this.Column1 = Column1; |
| this.Column2 = Column2; |
| this.ChildGridColumns = ChildGridColumns; |
| } |
| public int Column1 { get; set; } |
| public int Column2 { get; set; } |
| public ObservableCollection<ChildGridColumn> ChildGridColumns { get; set; } |
| } |
| public class ChildGridColumn |
| { |
| public ChildGridColumn(int Num) |
| { |
| this.ChildColumn1 = Num; |
| this.ChildColumn2 = Num; |
| this.ChildColumn3 = Num; |
| } |
| public int ChildColumn1 { get; set; } |
| public int ChildColumn2 { get; set; } |
| public int ChildColumn3 { get; set; } |
| } |
| } |

I am trying to bind a IsChecked property of a RadMenuItem and does not fire the set event on my ViewModel property. When I had it set to a regular MenuItem, this was working. Is this not supported in the RadMenuItem?
DOES NOT WORK:
| <telerikNavigation:RadMenuItem x:Name="ShowSummary" |
| Header="Value Summary" |
| IsChecked="{Binding Path=IsSummaryChecked}" |
| IsCheckable="True" /> |
WORKS:
| <telerikNavigation:RadMenuItem x:Name="ShowSummary" |
| Header="Value Summary" |
| IsChecked="{Binding Path=IsSummaryChecked}" |
| IsCheckable="True" /> |
Hello,
I am trying to build a WPF application using Telerik with blend 3. I need to display HTML contents in a portion of my application window. I tried to use 'web browser' control for the purpose, it renders the HTML as desired. But the problem is when I apply a simple animation (change width) for the 'Web browser' control, using story board, the animation doesn’t take effect. I tried to play the story board at design time, animation is played as desired.
Can you please tell me how can I create animation for ‘Web browser’ and if it is possible please specify a sample? Thanks in advance.
Regards,
Haroon
