This is a migrated thread and some comments may be shown as answers.

Define columns in RadGridView with Q1 2010 version

2 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alex Martinez
Top achievements
Rank 1
Alex Martinez asked on 18 Mar 2010, 11:43 AM
Hi.
I just upgraded my project with the lastest DLL's of Q1 2010 version.
I have a view with a RadGridView control displaying a custom object, with the custom columns defined.

The definition of the columns is something like this:

<

 

TelerikControls:RadGridView.Columns>

 

 

 

<TelerikControls:GridViewSelectColumn Header="" />

 

 

 

<TelerikControls:GridViewDataColumn DataMemberBinding="{Binding CodigoAbonado}" Header="{DynamicResource LBL_AccionComercialView_CodigoAbonado}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

<TelerikControls:GridViewDataColumn DataMemberBinding="{Binding CodigoPostal}" Header="{StaticResource LBL_AccionComercialView_CodigoPostal}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

<TelerikControls:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding CuentaNombre}" Header="{DynamicResource LBL_AccionComercialView_NombreCuenta}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

<TelerikControls:GridViewDataColumn DataMemberBinding="{Binding IdFranquicia}" Header="{DynamicResource LBL_AccionComercialView_Franquicia}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

<TelerikControls:GridViewDataColumn DataMemberBinding="{Binding Envios}" Header="{DynamicResource LBL_AccionComercialView_NumeroEnvios}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

<TelerikControls:GridViewDataColumn DataMemberBinding="{Binding Facturacion}" Header="{DynamicResource LBL_AccionComercialView_Facturacion}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

</TelerikControls:RadGridView.Columns>

 

 

 

where "TelerikControls" is
xmlns:TelerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"

The application crashed with the following error:

"Null object reference exception.

Original Error StackTrace:

en Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.FindRootVisual()

en Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.Initialize()

en Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnAllowDragChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)

en System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

en System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

en System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

en System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)

en System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)

en System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)

en Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.SetAllowDrag(DependencyObject obj, Boolean value)

en Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnApplyTemplate()

en System.Windows.FrameworkElement.ApplyTemplate()

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureChild(UIElement child, Size constraint)

en Telerik.Windows.Controls.GridView.GridViewCellsPanel.GenerateChild(IItemContainerGenerator generator, Size constraint, GridViewColumn column, Int32& childIndex, Size& childSize)

en Telerik.Windows.Controls.GridView.GridViewCellsPanel.EnsureAtleastOneHeader(IItemContainerGenerator generator, Size constraint, List`1 realizedColumnIndices, List`1 realizedColumnDisplayIndices)

en Telerik.Windows.Controls.GridView.GridViewCellsPanel.DetermineRealizedColumnsBlockList(Size constraint)

en Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

en System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Control.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Control.MeasureOverride(Size constraint)

en Telerik.Windows.Controls.GridView.GridViewRowItem.MeasureOverride(Size constraint)

en Telerik.Windows.Controls.GridView.GridViewHeaderRow.MeasureOverride(Size availableSize)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Border.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Decorator.MeasureOverride(Size constraint)

en System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Control.MeasureOverride(Size constraint)

en Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

en System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Border.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Border.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

en System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Border.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Control.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

en System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.ContextLayoutManager.UpdateLayout()

en System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)

en System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()

en System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

en System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)

en System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)

en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)

en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

"

Any idea of what's happening?
Is version Q1 2010 not stable for this control?

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 18 Mar 2010, 12:41 PM
Hi Alex,

Thank you for your feedback. The error is caused by a bug that was recently reported by another customer. The problem is fixed and our next internal build will include a patched version of the control. I apologize for any injconveniences this may have caused you.

Regards,
Tihomir Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Alex Martinez
Top achievements
Rank 1
answered on 18 Mar 2010, 12:51 PM
Great!
Thanks for your response.
Tags
GridView
Asked by
Alex Martinez
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Alex Martinez
Top achievements
Rank 1
Share this question
or