radpane and document host issue

5 posts, 0 answers
  1. Manoj
    Manoj avatar
    1 posts
    Member since:
    May 2013

    Posted 27 May 2013 Link to this post

    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?
  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 28 May 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Manoj
    Manoj avatar
    2 posts
    Member since:
    Sep 2012

    Posted 28 May 2013 Link to this post

    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)
  5. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 30 May 2013 Link to this post

    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.

  6. Manoj
    Manoj avatar
    2 posts
    Member since:
    Sep 2012

    Posted 30 May 2013 Link to this post

    yes, we will continue the discussion as part of the thread 698114.
Back to Top
UI for WPF is Visual Studio 2017 Ready