or
<telerik:RadWindow ResizeMode="CanResizeWithGrip"> <AdornerDecorator> <Grid FocusManager.FocusedElement="{Binding ElementName=txtName}"> ...[System.ArgumentOutOfRangeException] = {"Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"}<BR> at System.ThrowHelper.ThrowArgumentOutOfRangeException()<BR> at System.Collections.Generic.List`1.get_Item(Int32 index)<BR> at Telerik.Windows.Controls.GridViewColumnCollectionInternal.ColumnFromDisplayIndex(Int32 displayIndex)<BR> at Telerik.Windows.Controls.GridView.GridViewCellsPanel.InitializeMeasureData()<BR> at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size availableSize)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)<BR> at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Grid.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Control.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Control.MeasureOverride(Size constraint)<BR> at Telerik.Windows.Controls.GridView.GridViewRowItem.MeasureOverride(Size constraint)<BR> at Telerik.Windows.Controls.GridView.GridViewHeaderRow.MeasureOverride(Size availableSize)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)<BR> at Telerik.Windows.Controls.GridView.GridViewScrollViewer.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Border.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Control.MeasureOverride(Size constraint)<BR> at Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Control.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)<BR> at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Border.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Control.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)<BR> at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Grid.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)<BR> at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Border.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Border.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Border.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Border.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Control.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Control.MeasureOverride(Size constraint)<BR> at Telerik.Windows.Controls.TabControl.RadTabControlBase.MeasureOverride(Size availableSize)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at Telerik.Windows.Controls.ProportionalStackPanel.MeasureOverride(Size availableSize)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)<BR> at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Border.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Grid.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Control.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)<BR> at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Border.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Control.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at Telerik.Windows.Controls.RadDockPanel.MeasureOverride(Size availableSize)<BR> at Telerik.Windows.Controls.DockingPanel.MeasureOverride(Size availableSize)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Border.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Grid.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Control.MeasureOverride(Size constraint)<BR> at Telerik.Windows.Controls.RadDocking.MeasureOverride(Size availableSize)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)<BR> at System.Windows.Controls.Grid.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)<BR> at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Border.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Control.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)<BR> at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Controls.Border.MeasureOverride(Size constraint)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.Window.MeasureOverrideHelper(Size constraint)<BR> at System.Windows.Window.MeasureOverride(Size availableSize)<BR> at System.Windows.FrameworkElement.MeasureCore(Size availableSize)<BR> at System.Windows.UIElement.Measure(Size availableSize)<BR> at System.Windows.ContextLayoutManager.UpdateLayout()<BR> at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)<BR> at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()<BR> at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()<BR> at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)<BR> at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)<BR> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<BR> at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)<BR><?xml version="1.0"?><BR><RawData xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance<;/A>" xmlns:xsd="<A href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema<;/A>"><BR> <SerializationString><?xml version="1.0"encoding="utf-16"?><BR><Data xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance<;/A>" xmlns:xsd="<A href="http://www.w3.org/2001/XMLSchema" >?="">http://www.w3.org/2001/XMLSchema"></A>;<BR> <T><BR> <TI K="-1096199086"N="Telerik.Windows.Controls.RadGridView, Telerik.Windows.Controls.GridView, Version=2012.1.215.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" /><BR> <TI K="-664072138" N="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /><BR> <TI K="883639814" N="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /><BR> <TI K="1938418300"N="Telerik.Windows.Controls.GridViewLength, Telerik.Windows.Controls.GridView, Version=2012.1.215.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" /><BR> <TI K="1062653933"N="Telerik.Windows.Controls.GridView.GridViewLengthConverter, Telerik.Windows.Controls.GridView, Version=2012.1.215.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" /><BR> <TI K="-1936503569" N="WpfView.Utils.ColumnProxy, WpfView, Version=2011.1.419.0, Culture=neutral, PublicKeyToken=null" /><BR> <TI K="542981235" N="System.Collections.Generic.List`1[[WpfView.Utils.ColumnProxy, WpfView, Version=2011.1.419.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /><BR> <TI K="168782652"N="System.Collections.Generic.List`1[[WpfView.Utils.SortDescriptorProxy, WpfView, Version=2011.1.419.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /><BR> <TI K="-896951768"N="System.Collections.Generic.List`1[[WpfView.Utils.FilterSetting, WpfView, Version=2011.1.419.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /><BR> <TI K="-1353305985"N="System.Collections.Generic.List`1[[WpfView.Utils.GroupDescriptorProxy, WpfView, Version=2011.1.419.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /><BR> </T><BR> <P><BR> <PV Key="-1" TypeKey="0"/><BR> <PV Key="1"TypeKey="883639814"><BR> <Value xsi:type="xsd:int">0</Value><BR> </PV><BR> <PV Key="2"TypeKey="-664072138"><BR> <Value xsi:type="xsd:string">System.Windows.Controls.Label: Name</Value><BR> </PV><BR> <PV Key="3"TypeKey="-664072138"><BR> <Value xsi:type="xsd:string">*</Value><BR> </PV><BR> <PV Key="4"TypeKey="883639814"><BR> <Value xsi:type="xsd:int">1</Value><BR> </PV><BR> <PV Key="5"TypeKey="-664072138"><BR> <Value xsi:type="xsd:string">System.Windows.Controls.Label: Date Of Birth</Value><BR> </PV><BR> </P><BR> <R><BR> <RV Key="65465420" IsRoot="true"TypeKey="-1096199086"><BR> <D><BR> <PD PN="Columns" VK="0" RK="14266522" TK="542981235" TCK="0"/><BR> <PD PN="SortDescriptors" VK="0" RK="57577169" TK="168782652" TCK="0"/><BR> <PD PN="FilterDescriptors" VK="0" RK="16240409" TK="-896951768" TCK="0"/><BR> <PD PN="GroupDescriptors" VK="0" RK="53930216" TK="-1353305985" TCK="0"/><BR> </D><BR> </RV><BR> <RV Key="24159481"IsRoot="false" TypeKey="0"><BR> <D><BR> <PD PN="UniqueName" VK="-1" RK="0" TK="-664072138" TCK="0"/><BR> <PD PN="DisplayOrder" VK="1" RK="0" TK="883639814" TCK="0"/><BR> <PD PN="Header"VK="2" RK="0" TK="-664072138" TCK="0"/><BR> <PD PN="Width"VK="3" RK="0" TK="1938418300" TCK="1062653933"/><BR> </D><BR> </RV><BR> <RV Key="14266522"IsRoot="false" TypeKey="542981235"><BR> <D><BR> <PD PN="Columns[]" VK="0" RK="24159481" TK="-1936503569" TCK="0"/><BR> <PD PN="Columns[]" VK="0" RK="51014632" TK="-1936503569" TCK="0"/><BR> </D><BR> </RV><BR> <RV Key="51014632"IsRoot="false" TypeKey="0"><BR> <D><BR> <PD PN="UniqueName" VK="-1" RK="0" TK="-664072138" TCK="0"/><BR> <PD PN="DisplayOrder" VK="4" RK="0" TK="883639814" TCK="0"/><BR> <PD PN="Header"VK="5" RK="0" TK="-664072138" TCK="0"/><BR> <PD PN="Width"VK="3" RK="0" TK="1938418300" TCK="1062653933"/><BR> </D><BR> </RV><BR> </R><BR></Data></SerializationString><BR> <ValueTypes><BR> <string>Telerik.Windows.Controls.RadGridView, Telerik.Windows.Controls.GridView, Version=2012.1.215.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7</string><BR> <string>System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</string><BR> <string>System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</string><BR> <string>Telerik.Windows.Controls.GridViewLength, Telerik.Windows.Controls.GridView, Version=2012.1.215.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7</string><BR> <string>Telerik.Windows.Controls.GridView.GridViewLengthConverter, Telerik.Windows.Controls.GridView, Version=2012.1.215.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7</string><BR> <string>WpfView.Utils.ColumnProxy, WpfView, Version=2011.1.419.0, Culture=neutral, PublicKeyToken=null</string><BR> <string>System.Collections.Generic.List`1[[WpfView.Utils.ColumnProxy, WpfView, Version=2011.1.419.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</string><BR> <string>System.Collections.Generic.List`1[[WpfView.Utils.SortDescriptorProxy, WpfView, Version=2011.1.419.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</string><BR> <string>System.Collections.Generic.List`1[[WpfView.Utils.FilterSetting, WpfView, Version=2011.1.419.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</string><BR> <string>System.Collections.Generic.List`1[[WpfView.Utils.GroupDescriptorProxy, WpfView, Version=2011.1.419.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</string><BR> </ValueTypes><BR></RawData><BR>seriesMapping seriesMapping = new SeriesMapping(); foreach (IGroupDescriptor descriptor in chartGrid.GroupDescriptors) { seriesMapping.GroupingSettings.GroupDescriptors.Add(new ChartGroupDescriptor(getDataMemberName(descriptor))); } seriesMapping.ItemMappings.Add(new ItemMapping(lastGrouping , DataPointMember.XCategory)); seriesMapping.ItemMappings.Add(new ItemMapping(lastGrouping , DataPointMember.LegendLabel)); ChartAggregateFunction aggFunc = getChartAggregation(lbxFunction); mapping = new ItemMapping(lbxSumm.SelectedValue.ToString(), DataPointMember.YValue, aggFunc); DataColumn col = dt.Columns[lbxSumm.SelectedValue.ToString()]; if (col != null) mapping.FieldType = col.DataType; seriesMapping.ItemMappings.Add(mapping); radChart1.DefaultSeriesDefinition = (ISeriesDefinition)getChartType(); radChart1.ItemsSource = null; radChart1.SeriesMappings.Clear(); radChart1.DefaultView.ChartLegend.UseAutoGeneratedItems = true; radChart1.DefaultSeriesDefinition.LegendDisplayMode = LegendDisplayMode.SeriesLabel; DataTable dtSource = dt; radChart1.SeriesMappings.Add(seriesMapping); radChart1.ItemsSource = dtSource;
<Window.DataContext> <ViewModel:MainWindowViewModel x:Name="ViewModelContext"> <ViewModel:MainWindowViewModel.ContextMenuTemplate> <DataTemplate > <tel:RadContextMenu> <tel:RadMenuItem Header="Floating" Command="tel:RadDockingCommands.Floating" /> <tel:RadMenuItem Header="Dockable" Command="tel:RadDockingCommands.Dockable" /> <tel:RadMenuItem Header="Save" Command="{Binding Save}"/> <tel:RadMenuItem Header="Close" Command="{Binding Close}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type tel:RadPane}}}" /> </tel:RadContextMenu> </DataTemplate> </ViewModel:MainWindowViewModel.ContextMenuTemplate> <ViewModel:MainWindowViewModel.PaneHeaderTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <ContentPresenter Content="{Binding}" Width="150" ToolTip="{Binding}" /> <Button Command="{Binding DataContext.Close, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type tel:RadPane}}}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type tel:RadPane}}}" HorizontalAlignment="Center" VerticalAlignment="Center" ToolTip="Close" BorderThickness="0" Width="16" Height="16"> <Image Source="Resources\Images\ImgClose.png"/> </Button> </StackPanel> </DataTemplate> </ViewModel:MainWindowViewModel.PaneHeaderTemplate> </ViewModel:MainWindowViewModel></Window.DataContext>
I can't get this to working.
In the above PaneHeaderTemplate works fine but I am not able to pass the parameter for the ContextMenu Template.
Is there any different way to do this?