Telerik Forums
UI for WPF Forum
1 answer
199 views
I'm using rad window as window:

<telerik:RadWindow ResizeMode="CanResizeWithGrip">
    <AdornerDecorator>
        <Grid FocusManager.FocusedElement="{Binding ElementName=txtName}"> ...
Having focus manager is causing exception below:

System.NullReferenceException
Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.WindowBase.OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 863
   at System.Windows.UIElement.OnGotKeyboardFocusThunk(Object sender, KeyboardFocusChangedEventArgs e)
   at System.Windows.Input.KeyboardFocusChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
   at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
   at System.Windows.Input.FocusManager.OnFocusedElementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
   at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.Activate(Object item)
   at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
   at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Run(Object arg)
   at MS.Internal.Data.DataBindEngine.OnLayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.UIElement.UpdateLayout()
   at System.Windows.Interop.HwndSource.SetLayoutSize()
   at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   at MS.Internal.DeferredHwndSource.ProcessQueue(Object sender, EventArgs e)


It happens only on designer (thankfully) but is a bit anoying. Once I remove focus manager there is no error.
Vladi
Telerik team
 answered on 11 Sep 2012
1 answer
288 views
Hello,

we are wanting to use your RadExpressionEditor to create expressions to filter data. But we also want to allow the user to save those expressions and at a later date reload  them and use them again.

We looked at your RadExpressionEditor  and it looks like we can use the RadExpressionEditor to create the expression and then use the Expression property to get the LambdaExpression and we can  persist that ourselves, but there doesn't appear to be a way to set the Expression property of the control. We need that so we can reload the saved expression. Do you know whether that is possible with any of your controls?

regards,
Ned Stoyanov
Dimitrina
Telerik team
 answered on 11 Sep 2012
1 answer
116 views
Hi,
We are using telerik:raddocumentpane in our WPF tool. Its developed 1.5 years back. Now our client uses windows 8 machine. On windows 8 machine, control insides telerik:raddocumentpane not supporting command binding, texbox text binding, dropdown selection and binding on normal  buttons, textbox, dropdown list .

Please help us out here.

Thanks,
--Vikas
Vikas Shirke
Top achievements
Rank 1
 answered on 11 Sep 2012
10 answers
354 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
81 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
293 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
257 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
105 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
142 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
279 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
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?