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

RadGridView with SelectColumn inside a RadPane (RadDocking) throw an exception when dragging the pane over

1 Answer 30 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bernard
Top achievements
Rank 1
Bernard asked on 26 Jan 2012, 11:41 AM
Hi,

I've a RadGridView with a SelectColumn inside a RadPane (RadDocking). 
When the pane is hosted in DocumentHost and i drag the pane over and pass into floating window an exception i thrown :

Message : Specified element is already the logical child of another element. Disconnect it first.
 
StackTrace :
 
   at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
   at System.Windows.FrameworkElement.AddLogicalChild(Object child)
   at System.Windows.Controls.ContentControl.OnContentChanged(Object oldContent, Object newContent)
   at System.Windows.Controls.ContentControl.OnContentChanged(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.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.PrepareHeaderContent() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewHeaderCell.cs:line 382
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.Prepare() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewHeaderCell.cs:line 1100
   at Telerik.Windows.Controls.GridView.GridViewHeaderRow.PrepareCell(GridViewCellBase cellBase, GridViewColumn column) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Rows\GridViewHeaderRow.cs:line 244
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.PrepareCell(GridViewCellBase cell, GridViewColumn column) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 410
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.GetVirtualizedCell(GridViewColumn column, Boolean createIfNull) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 399
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.RealizeAndMeasureCells(Int32 startIndex, Int32 predictedLastIndex, Func`2 calculateNextIndex) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 334
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.UpdateVirtualizedCells() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 269
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size availableSize) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 306
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)

If i remove the SelectColumn, all is working fine.

I'm using the internal build of WPF Controls : 2011.3.1227.40
I tried with stable build and latest internal builds and the behavior is the same.

Any help ?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 31 Jan 2012, 11:21 AM
Hello Bernard,

I've tried to reproduce the problem you reported but to no avail. Can you check the attached test application and let me know if you are able to reproduce the exception? Is there something specific in your scenario that I've missed?
 
Greetings,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Bernard
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Share this question
or