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

Q1 2013: problem with ColumnSortDescriptor

4 Answers 77 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jean
Top achievements
Rank 1
Jean asked on 11 Mar 2013, 10:07 AM
Hello,
I have a problem with the Q1 2013 version that was not in the previous, Q3 2012 SP1. I'm using Gridview with a GroupDescriptor 
, my gridview is in a telerik tabItem, when i switch from tabitem, and I'm back on my grid I have this error :


Column cannot be null
Nom du paramètre : newColumn

Stack Trace :

à Telerik.Windows.Controls.GridView.ColumnGroupDescriptor.OnColumnChanged(GridViewColumn oldColumn, GridViewColumn newColumn)
à Telerik.Windows.Controls.GridView.ColumnGroupDescriptor.OnColumnPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
à System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
à System.Windows.Freezable.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
à System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
à System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
à System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
à System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
à System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
à System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange)
à MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange)
à MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
à MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName)
à MS.Internal.Data.PropertyPathWorker.OnPropertyChanged(Object sender, PropertyChangedEventArgs e)
à System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
à System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)
à System.Collections.ObjectModel.ObservableCollection`1.OnPropertyChanged(PropertyChangedEventArgs e)
à System.Collections.ObjectModel.ObservableCollection`1.ClearItems()
à Telerik.Windows.Controls.GridViewColumnCollectionInternal.ClearItems()
à System.Collections.ObjectModel.Collection`1.Clear()
à Telerik.Windows.Controls.GridView.GridViewDataControl.TotalColumnRefresh()
à Telerik.Windows.Controls.GridView.GridViewDataControl.Grid_Loaded(Object sender, RoutedEventArgs e)
à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
à System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
à System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
à System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
à System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
à MS.Internal.LoadedOrUnloadedOperation.DoWork()
à System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
à System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
à System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
à System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
à MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
à System.Windows.Threading.DispatcherOperation.InvokeImpl()
à System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Windows.Threading.DispatcherOperation.Invoke()
à System.Windows.Threading.Dispatcher.ProcessQueue()
à System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
à MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
à System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
à MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
à MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
à System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
à System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
à System.Windows.Threading.Dispatcher.Run()
à System.Windows.Application.RunDispatcher(Object ignore)
à System.Windows.Application.RunInternal(Window window)
à System.Windows.Application.Run(Window window)
à System.Windows.Application.Run()
à BaseCamp.App.Main() dans d:\ManagerEntrepriseVS\BaseCamp\BaseCamp\obj\Debug\App.g.cs:ligne 0

XAML Code :

<telerik:RadTabItem Header="{Binding Resource.PerSupplier}">
                              <telerik:RadGridView x:Name="QuotationDashBoardGrid"  ShowGroupPanel="true" AutoGenerateColumns="False"
                          ItemsSource="{Binding LstQuotationDashBoard, Mode=TwoWay}"  SelectedItem="{Binding SelectedQuotation, Mode=TwoWay}"
                          IsReadOnly="True" >
                                  <telerik:RadGridView.GroupDescriptors>
                                      <telerik:ColumnGroupDescriptor Column="{Binding Columns[SupplierColumn],ElementName=QuotationDashBoardGrid}"  SortDirection="Ascending" />
                                  </telerik:RadGridView.GroupDescriptors>
                                  <telerik:RadGridView.Columns>
                                      <telerik:GridViewImageColumn ImageHeight="17" ImageWidth="17"  DataMemberBinding="{Binding DiscountIndication,Converter={StaticResource QuotationToUri}}" Header="" />
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding CodeTarif}" Header="{Binding Resource.DiscountCode}" />
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding FamilleLibelle}" Header="{Binding Resource.DiscountLabel}" />
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding DisplayDiscount}"  Header="{Binding Resource.Discount}" />
                                      <telerik:GridViewDataColumn Header="{Binding Resource.Note}" DataMemberBinding="{Binding Note}"/>
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding DiscountDealName}" Header="{Binding Resource.DiscountDealName}" />
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding  OuContractedName}" Header="{Binding Resource.OU}" />
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding RootSupplierName}" UniqueName="SupplierColumn"  Header="{Binding Resource.Supplier}" />
                                       
 
                                  </telerik:RadGridView.Columns>
                          
                              </telerik:RadGridView>
                              </telerik:RadTabItem>

Without the GroupDescriptor, there is no problem.

Thanks in advance

4 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 11 Mar 2013, 10:15 AM
Hi Olivier,

 
This issue has already been resolved and the fix is available with our latest internal build. Please download it and give it a try. 

Let us know in case you experience any other problems.

Regards,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Jean
Top achievements
Rank 1
answered on 11 Mar 2013, 11:04 AM
Thanks, it works !!
0
Mark
Top achievements
Rank 2
answered on 05 Apr 2013, 05:22 PM
We are running into this same exact exception in Silverlight. I took the hotfix RadControls_for_Silverlight5_2013_1_0401_TRIAL_hotfix and overwrote all of the folders/files at C:\Program Files (x86)\Telerik\RadControls for Silverlight Q3 2012 with the hotfix build files, however we still have the exception.

Could you please let us know if this is the proper hotfix for this issue?
0
Vera
Telerik team
answered on 08 Apr 2013, 08:02 AM
Hi Mark,


May I ask you to check whether the referenced binaries are the right ones? Please check the attached image.


Greetings,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Jean
Top achievements
Rank 1
Answers by
Vera
Telerik team
Jean
Top achievements
Rank 1
Mark
Top achievements
Rank 2
Share this question
or