Telerik Forums
UI for WPF Forum
10 answers
370 views
Hi,

When I try to load a persisted stream into a gridview, I receive the following exception:

[System.ArgumentOutOfRangeException] = {"Index was out of range. Must be
non-negative and less than the size of the collection.\r\nParameter name:
index"}<BR>

Stack trace:

   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>

The persisted stream contains the following string:

<?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
<SerializationString>&lt;?xml version="1.0"
encoding="utf-16"?&gt;<BR>&lt;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"
&gt?="">http://www.w3.org/2001/XMLSchema"&gt</A>;<BR> 
&lt;T&gt;<BR>    &lt;TI K="-1096199086"
N="Telerik.Windows.Controls.RadGridView, Telerik.Windows.Controls.GridView,
Version=2012.1.215.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7"
/&gt;<BR>    &lt;TI K="-664072138" N="System.String,
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/&gt;<BR>    &lt;TI K="883639814" N="System.Int32,
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/&gt;<BR>    &lt;TI K="1938418300"
N="Telerik.Windows.Controls.GridViewLength, Telerik.Windows.Controls.GridView,
Version=2012.1.215.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7"
/&gt;<BR>    &lt;TI K="1062653933"
N="Telerik.Windows.Controls.GridView.GridViewLengthConverter,
Telerik.Windows.Controls.GridView, Version=2012.1.215.40, Culture=neutral,
PublicKeyToken=5803cfa389c90ce7" /&gt;<BR>    &lt;TI
K="-1936503569" N="WpfView.Utils.ColumnProxy, WpfView, Version=2011.1.419.0,
Culture=neutral, PublicKeyToken=null" /&gt;<BR>    &lt;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"
/&gt;<BR>    &lt;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"
/&gt;<BR>    &lt;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"
/&gt;<BR>    &lt;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"
/&gt;<BR>  &lt;/T&gt;<BR> 
&lt;P&gt;<BR>    &lt;PV Key="-1" TypeKey="0"
/&gt;<BR>    &lt;PV Key="1"
TypeKey="883639814"&gt;<BR>      &lt;Value
xsi:type="xsd:int"&gt;0&lt;/Value&gt;<BR>   
&lt;/PV&gt;<BR>    &lt;PV Key="2"
TypeKey="-664072138"&gt;<BR>      &lt;Value
xsi:type="xsd:string"&gt;System.Windows.Controls.Label:
Name&lt;/Value&gt;<BR>   
&lt;/PV&gt;<BR>    &lt;PV Key="3"
TypeKey="-664072138"&gt;<BR>      &lt;Value
xsi:type="xsd:string"&gt;*&lt;/Value&gt;<BR>   
&lt;/PV&gt;<BR>    &lt;PV Key="4"
TypeKey="883639814"&gt;<BR>      &lt;Value
xsi:type="xsd:int"&gt;1&lt;/Value&gt;<BR>   
&lt;/PV&gt;<BR>    &lt;PV Key="5"
TypeKey="-664072138"&gt;<BR>      &lt;Value
xsi:type="xsd:string"&gt;System.Windows.Controls.Label: Date Of
Birth&lt;/Value&gt;<BR>    &lt;/PV&gt;<BR> 
&lt;/P&gt;<BR>  &lt;R&gt;<BR>    &lt;RV
Key="65465420" IsRoot="true"
TypeKey="-1096199086"&gt;<BR>     
&lt;D&gt;<BR>        &lt;PD
PN="Columns" VK="0" RK="14266522" TK="542981235" TCK="0"
/&gt;<BR>        &lt;PD
PN="SortDescriptors" VK="0" RK="57577169" TK="168782652" TCK="0"
/&gt;<BR>        &lt;PD
PN="FilterDescriptors" VK="0" RK="16240409" TK="-896951768" TCK="0"
/&gt;<BR>        &lt;PD
PN="GroupDescriptors" VK="0" RK="53930216" TK="-1353305985" TCK="0"
/&gt;<BR>     
&lt;/D&gt;<BR>   
&lt;/RV&gt;<BR>    &lt;RV Key="24159481"
IsRoot="false" TypeKey="0"&gt;<BR>     
&lt;D&gt;<BR>        &lt;PD
PN="UniqueName" VK="-1" RK="0" TK="-664072138" TCK="0"
/&gt;<BR>        &lt;PD
PN="DisplayOrder" VK="1" RK="0" TK="883639814" TCK="0"
/&gt;<BR>        &lt;PD PN="Header"
VK="2" RK="0" TK="-664072138" TCK="0"
/&gt;<BR>        &lt;PD PN="Width"
VK="3" RK="0" TK="1938418300" TCK="1062653933"
/&gt;<BR>     
&lt;/D&gt;<BR>   
&lt;/RV&gt;<BR>    &lt;RV Key="14266522"
IsRoot="false" TypeKey="542981235"&gt;<BR>     
&lt;D&gt;<BR>        &lt;PD
PN="Columns[]" VK="0" RK="24159481" TK="-1936503569" TCK="0"
/&gt;<BR>        &lt;PD
PN="Columns[]" VK="0" RK="51014632" TK="-1936503569" TCK="0"
/&gt;<BR>     
&lt;/D&gt;<BR>   
&lt;/RV&gt;<BR>    &lt;RV Key="51014632"
IsRoot="false" TypeKey="0"&gt;<BR>     
&lt;D&gt;<BR>        &lt;PD
PN="UniqueName" VK="-1" RK="0" TK="-664072138" TCK="0"
/&gt;<BR>        &lt;PD
PN="DisplayOrder" VK="4" RK="0" TK="883639814" TCK="0"
/&gt;<BR>        &lt;PD PN="Header"
VK="5" RK="0" TK="-664072138" TCK="0"
/&gt;<BR>        &lt;PD PN="Width"
VK="3" RK="0" TK="1938418300" TCK="1062653933"
/&gt;<BR>     
&lt;/D&gt;<BR>    &lt;/RV&gt;<BR> 
&lt;/R&gt;<BR>&lt;/Data&gt;</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>

I am using the libraries of version 2012.1.215.40. I am following the GridViewCustomSerialization project in the demos as a guide.

The gridview has only two columns and its AutoGenerateColumns property set to false.

I would appreciate if you could indicate what could cause this exception as soon as possible.

Regards,
Gajan



Tina Stancheva
Telerik team
 answered on 11 Sep 2012
2 answers
91 views
For pie chart, I'm grouping a field and aggregating on another. What I'm getting is individual layer on top of each other instead of the different slices for the grouped field.

Any ideas why?

Here is my code:

            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;
Oliver
Top achievements
Rank 1
 answered on 11 Sep 2012
3 answers
309 views
Hello,

I am trying to create a stack bar chart. The value of the bars series data is a number and the category is the date of every Sunday of a particular date range. So basically the data is per week. However I would like the horizontal axis to only show the month and year of the data. So again basically only having a tick every 4-5 bars (because some months have 4 Sundays while other may have 5). How would I go about accomplishing this?

Thanks,

Jon.
Petar Marchev
Telerik team
 answered on 11 Sep 2012
5 answers
270 views
Hi,

i'm using a RadGridView with Theme="Metro". But how can i change the color of a selected Row? Now it
is gray, but i want something like lightblue.

Thanks
Best Regards
Rene
Vanya Pavlova
Telerik team
 answered on 11 Sep 2012
0 answers
118 views
Hi
I want to remove the mouseover color in GridView, What to do when I data binding with Items.Add() and using CellTeamplate.

Thanks
Best Regards
Rene
Hung
Top achievements
Rank 1
 asked on 11 Sep 2012
2 answers
152 views
Hello,

I am using telerik transition control  to create a ad rotator control as said in this link. http://blogs.telerik.com/blogs/posts/11-01-11/how-to-create-ad-rotator-with-telerik-transitioncontrol-and-coverflow-control-for-silverlight.aspx  . I have noticed that telerik component is wasting so much memory making my application unstable. I  isolated the telerik transition control from my application and found out that memory consumption is fairly stable  without the adrotator control. 

Is this a known issue? Is there any work around for this?

Thanks,
John. 

Ivo
Telerik team
 answered on 11 Sep 2012
1 answer
290 views
I am trying to pass the sender (control i.e. a Radpane from where the context menu was invoked) as command parameter.

The code is as follows:

<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?

Rosen Vladimirov
Telerik team
 answered on 11 Sep 2012
4 answers
139 views
Product     |  Qty  |  Sales
Product A     50      500
Product B     60      600
Product C     55      550
Product D     65      650
Product A     40      400
Product B     45      450
Product C     35      350
Product D     25      250

I have the above data table. I would like to group by the Product and have the different Product description on the X-Axis. I would like to plot the sum of Qty and average of Sales on the same bar graph. So the legend would display Sum of Qty and Average of Sales.
I would like to achieve something like the following:



Any code samples would be great
Oliver
Top achievements
Rank 1
 answered on 11 Sep 2012
1 answer
115 views
Hi,

I'm using WPF 4.0. I followed the demo for reordering rows for radgridview(1 row at a time), it worked perfectly. But now I need to allow multiple rows to be reordered. Is that possible? Anyone here done it before?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 11 Sep 2012
0 answers
79 views
  1. I have a radgridview with the following sorted items in it; the column has a SortDescriptor with SortDirection="Ascending".
    00 item
    03 item
    05 item
    99 item
  2. Rename the cell in the 2nd row in a way that would make it move down 1 position in the list (prepend "06"):
    00 item
    06 03 item
    05 item
    99 item
    The column header shows an up-triangle, indicating ascending sort, but the column is not sorted. 
  3. Now rename the first row (prepend "07"):
    06 03 item
    05 item
    07 00 item 
    99 item
    The renamed item "07 00 item" sorted itself properly, but the one that failed in step 2, "06 03 item", is still in the wrong place.


This bug doesn't seem to affect moving an item upwards in the list, nor does it affect the first row.
Michael
Top achievements
Rank 1
 asked on 10 Sep 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?