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

radpane and document host issue

4 Answers 194 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 27 May 2013, 05:48 PM
I am planning to use this behavior...

<Grid  >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="4*"/>
                    <ColumnDefinition Width="4"/>
                    <ColumnDefinition Width="1*"/>
                </Grid.ColumnDefinitions>
                
                <Grid Grid.Column="0">
                    <Controls....../>
                </Grid>

                <GridSplitter Grid.Column="1"/>
                
                <Grid Grid.Column="2" >
                    <Controls: CustomControl/>
                </Grid>
            </Grid>


this custom control in the third column is a rad docking control as shown below:

<telerikDocking:RadDocking x:Name="dockPane" HasDocumentHost="False"> 
                <telerikDocking:RadSplitContainer InitialPosition="DockedRight" Orientation="Vertical" >
                    <telerikDocking:RadPaneGroup Background="White" >
                        <telerikDocking:RadPane  IsPinned="True" CanUserClose="True">

                            <telerik:RadGridView AutoGenerateColumns="False" ShowGroupPanel="False">
                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewDataColumn>
..........
                                    </telerik:GridViewDataColumn>
                                    <telerik:GridViewDataColumn>
..........                                        
                                    </telerik:GridViewDataColumn>
                                </telerik:RadGridView.Columns>
                            </telerik:RadGridView>
                        </telerikDocking:RadPane>
                    </telerikDocking:RadPaneGroup>
                </telerikDocking:RadSplitContainer>            
        </telerikDocking:RadDocking>


Issues i am facing are as follows:
1) After unpinning, on mouse over of unpinned tab, exception is coming (cant not set the property width to -28.4)
2) If you do a unpin, document host is not getting collapse, it is visible, only the rad pane is tabbed on the right hand side but document host background is still visible even though i am setting the document host to false as part of docking control
3) If i want to add a rectangle at the top of the rad docking control , is it possible?

4 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 28 May 2013, 09:23 AM
Hello Manoj,

Straight to your questions:

1. I couldn't reproduce the issue, could you please provide us with more detailed information?
2. When you unpin the Pane it reveals the background of the Docking control and this is its correct behavior.
3. Please provide more information on how exactly you need to place the rectangle.

I'm looking forward to your response.

Regards,
Kalin
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Manoj
Top achievements
Rank 1
answered on 28 May 2013, 10:31 AM
HI Kalin,

Please find the screen shot attached.

In the Pinned.JPG, everything is fine, document host is collapsed (behavior is fine until you resize the pane with the help of a grid splitter).

In the backgroundIssue.JPG, i unpinned the rad pane after some resizing and because of that background color of the document host is visible and it is not collapsed properly.


The other issue is:
After unpinning (isPinned = false), then on mouse over of unpinned tab, exception is coming (-28.4 is not a valid value for property width) but i am not setting the width anywhere in my xaml. This is the exception's stack trace

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 System.Windows.FrameworkElement.set_Width(Double value)
   at Telerik.Windows.Controls.Docking.AutoHideArea.OnSelectionChanged(IList removedItems, IList addedItems)
   at Telerik.Windows.Controls.Docking.AutoHideArea.OnSelectionChanged(RadSelectionChangedEventArgs e)
   at Telerik.Windows.Controls.TabControl.RadTabControlBase.HandleSelectionChanged(IList removedItems, IList addedItems)
   at Telerik.Windows.Controls.TabControl.RadTabControlBase.Selector_SelectionChanged(Object sender, SelectionChangedEventArgs e)
   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.Controls.Primitives.Selector.SelectionChanger.End()
   at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(Object item, Boolean assumeInItemsCollection)
   at System.Windows.Controls.Primitives.Selector.OnSelectedItemChanged(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.Docking.AutoHideArea.NotifyMouseEnter(RadPane radPane)
   at Telerik.Windows.Controls.RadPane.ActivateAutoHide(Boolean isMouseEnter)
   at Telerik.Windows.Controls.RadPane.OnMouseEnter(MouseEventArgs e)
   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.MouseOverProperty.FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, Boolean oldValue)
   at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
   at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
   at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
   at System.Windows.ReverseInheritProperty.OnOriginValueChanged(DependencyObject oldOrigin, DependencyObject newOrigin, IList`1 otherOrigins, DeferredElementTreeState& oldTreeState, Action`2 originChangedAction)
   at System.Windows.ReverseInheritProperty.OnOriginValueChanged(DependencyObject oldOrigin, DependencyObject newOrigin, DeferredElementTreeState& oldTreeState)
   at System.Windows.Input.MouseDevice.ChangeMouseOver(IInputElement mouseOver, Int32 timestamp)
   at System.Windows.Input.MouseDevice.PreNotifyInput(Object sender, NotifyInputEventArgs e)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   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)
0
Kalin
Telerik team
answered on 30 May 2013, 07:34 AM
Hello,

We noticed that you have opened another thread with ID: 698114 about the same issue and we responded to you in the other post. Could we continue the discussion there?

I'll post our response here too, so that it is available to the community:

We are unaware of issues with pinned/unpinned Panes and the DocumentHost of the Docking control. As I can see on the attached screenshots it looks like you have made some customizations which could be causing the issue.

Regards,
Kalin
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Manoj
Top achievements
Rank 1
answered on 30 May 2013, 08:29 AM
yes, we will continue the discussion as part of the thread 698114.
Tags
Docking
Asked by
Manoj
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Manoj
Top achievements
Rank 1
Share this question
or