Telerik Forums
UI for WPF Forum
1 answer
119 views
I have a masked text input box that I am using in the edit template of a data form.  I have been getting odd exceptions when I try to update the text in this box.  I finally figured out that if I go to the textbox and start with a capital (i.e. shift+alpha key), I get the exception.  If I start typing in the textbox with a lower case alpha character or click the mouse in the box again, I have no problem.

Here is the textbox definition along with the stackpanel for that item:
<StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="1" Margin="0,0,0,5">
                                    <TextBlock Text="Description" Margin="0,0,0,0" VerticalAlignment="Center" Width="{StaticResource LabelWidth}" Style="{StaticResource LabelBoldStyle}" />
                                    <telerikInput:RadMaskedTextInput x:Name="txtDescription" Mask="" Width="{StaticResource LargeLabelWidth}"
                                                                    SpinMode="None" IsClearButtonVisible="False" SelectionOnFocus="SelectAll"
                                                                    TextMode="PlainText" InputBehavior="Replace" SectionsNavigationMode="None"
                                                                    Value="{Binding Description, Mode=TwoWay}" UpdateValueEvent="LostFocus"
                                                                    >
                                    </telerikInput:RadMaskedTextInput>
                                </StackPanel>

Here is the exception that I get:

System.IndexOutOfRangeException was unhandled by user code

  Message=Index was outside the bounds of the array.

  Source=mscorlib

  StackTrace:

       at System.Text.StringBuilder.get_Chars(Int32 index)

       at Telerik.Windows.Controls.RadMaskedInputBase.ClearString(String text, Int32 start, Int32 end, Boolean clearPlaceholders) in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\RadMaskedInputBase.cs:line 2847

       at Telerik.Windows.Controls.RadMaskedInputBase.ClearString(String str, Boolean clearPlaceholders) in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\RadMaskedInputBase.cs:line 2833

       at Telerik.Windows.Controls.RadMaskedInputBase.CoerceDisplayText() in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\RadMaskedInputBase.cs:line 2431

       at Telerik.Windows.Controls.RadMaskedInputBase.CoerceValue(UpdateValueEvent updateEvent) in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\RadMaskedInputBase.cs:line 2419

       at Telerik.Windows.Controls.RadMaskedInputBase.OnKeyDownHandled(Char c) in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\RadMaskedInputBase.cs:line 502

       at Telerik.Windows.Controls.MaskedInput.PreviewInputTextBox.OnTextInput(TextCompositionEventArgs e) in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\PreviewInputTextBox.cs:line 55

       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

       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.Input.InputManager.ProcessStagingArea()

       at System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)

       at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)

       at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)

       at System.Windows.Input.InputManager.ProcessStagingArea()

       at System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition)

       at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)

       at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)

       at System.Windows.Input.InputManager.ProcessStagingArea()

       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

       at System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

       at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)

       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

  InnerException:



Tina Stancheva
Telerik team
 answered on 11 Sep 2012
1 answer
121 views
Hi
I want some items in my combo be unselectable (not all), and they be in gray color that shows they are inactive.
How can do this?
Vladi
Telerik team
 answered on 11 Sep 2012
1 answer
180 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
264 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
103 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
342 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
66 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
276 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
202 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
98 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?