RadPane not auto-hiding when pane content selected

14 posts, 0 answers
  1. Guy
    Guy avatar
    19 posts
    Member since:
    Oct 2012

    Posted 02 Dec 2014 Link to this post

    Hi
    I have a problem with the RadDocking pane which doesn't auto-hide after selecting an item in a list box contained within the RadPane. I want the user to be able to mouse-over the pane header to show the pane (in unpinned mode) and then click or double click an item in the list contained within the pane. When the user moves the mouse away or sets focus to another part of the application, the pane should auto-hide.
    Currently if the user mouses over the pane header, the pane slides into view, and on mouse leave the pane auto-hides correctly. However, if they mouse over the header and then select an item in the list box on the pane, the pane then refuses to auto-hide, no matter what control gets focus after that. The only way to hide the pain is then to manually pin and unpin it.

    How can I get the pane to auto-hide correctly?

    XAML below:

    <
    telerik:RadDocking>
          <telerik:RadDocking.DocumentHost>
              <!--document here-->
          </telerik:RadDocking.DocumentHost>
               
          <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft">
              <telerik:RadPaneGroup>                       
                  <telerik:RadPane IsPinned="True" Header="Products" CanUserClose="False"
                                  CanFloat="False"
                                  CanDockInDocumentHost="False"
                                  ContextMenuTemplate="{x:Null}">
                      <telerik:RadPane.HeaderTemplate>
                          <DataTemplate>
                              <TextBlock Text="{Binding}" Margin="0, 0, 80, 0"/>
                          </DataTemplate>
                      </telerik:RadPane.HeaderTemplate>
                           
                      <!--Product List-->
                      <telerik:RadListBox>
                                 <!--- databound to product list -->
                      </telerik:RadListBox>
                  </telerik:RadPane>
              </telerik:RadPaneGroup>
          </telerik:RadSplitContainer>
      </telerik:RadDocking>

    Thanks,
    Guy
  2. Nasko
    Admin
    Nasko avatar
    681 posts

    Posted 03 Dec 2014 Link to this post

    Hello Guy,

    The described behavior of RadPane is an expected one. By design when a Pane is unpinned and the focus is inside its content, in order to be hidden that focus needs to be lost. For example that could be achieved by activating another Pane inside the Docking control - thus the first one will hide. Please, check the short video we prepared in order to demonstrate the described above behavior.

    Hope this helps. 

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Guy
    Guy avatar
    19 posts
    Member since:
    Oct 2012

    Posted 03 Dec 2014 Link to this post

    Hi
    In our case the focus is being lost, as the focus moves to an item inside the telerik:RadDocking.DocumentHost, but the pane does not hide.
    In your demo video, if you put a text box on the main window and click it, would the pane auto-hide? I would expect that behaviour as the pane has then lost focus. I'm not seeing this happen in practice, perhaps there is a property setting I am missing?
    Thanks,
    Guy
  4. Nasko
    Admin
    Nasko avatar
    681 posts

    Posted 05 Dec 2014 Link to this post

    Hi Guy,

    When the focus is inside the Pane and an item from the DocumentHost is selected the focus should move to the DocumentHost - thus the Pane should hide. So, the described behavior concerning the DocumentHost is an unexpected one.

    The Pane should also hide when the focus moves to a control outside the Docking. I have managed to reproduce that behavior. However we will need some more time to investigate the issue further and I will contact you back with more information as soon as possible.

    Thank you for your patience.

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 05 Dec 2014 in reply to Nasko Link to this post

    I am also facing a similar issue, In my case i am using a mix of WPF and winforms host, the focus is set to a user control hosted inside winforms host but the RadPane does not auto hide, is there a property that we can data bind to to hide the Rad Pane.

    thanks
    vikas
  6. Nasko
    Admin
    Nasko avatar
    681 posts

    Posted 08 Dec 2014 Link to this post

    Hello,

    Guy, we have logged the issue in our internal backlog and it will be fixed in one of our future releases.
    We apologize for any inconvenience caused and we have updated your Telerik points for the involvement.

    Vikas, if the WinForms control is outside RadDocking the issue should be resolved with the fix mentioned above. However, if that's not the case, could you please provide us more detailed information about your scenario, so we could be able to investigate the issue further?

    We are looking forward to hearing from you.

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  7. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 08 Dec 2014 in reply to Nasko Link to this post

    No in my case the Winforms is inside the RadDocking, this is the visual structure of my application
    WPF window --> DocumentHost --> RadPaneGroup --> RadPane --> WPF User control --> Windforms Host

    we have legacy screens developed using winforms, we are not changing them all at  once, first step is to change the Outer shell to WPF and we are using RadDocking to host legacy screens.

    vikas
  8. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 08 Dec 2014 in reply to Vikas Link to this post

    Forgot to mention, I am able to hide it by changing the IsPinned to true and then to false, it is not very smooth but works.

    Vikas
  9. Nasko
    Admin
    Nasko avatar
    681 posts

    Posted 10 Dec 2014 Link to this post

    Hi Vikas

    Please, check that sample project from our SDK Repository that demonstrates how to host WindowsForms control inside WPF. Note that in this scenario you would need manually activate the Pane with the WinFormsHost inside. For example you can do that in the GotFocus event handler of the WindowsFormsHost as shown below:

    private void WindowsFormsHost_GotFocus(object sender, RoutedEventArgs e)
    {
        this.docking.ActivePane = this.winFormsPane;
    }

    Hope this will work for you.

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  10. Kevin
    Kevin avatar
    29 posts
    Member since:
    Mar 2012

    Posted 29 Jun in reply to Nasko Link to this post

    Nasko posted on 5 Dec 2014 that he had reproduced this issue and would investigate it further. Was it ever fixed or resolved?
  11. Guy
    Guy avatar
    19 posts
    Member since:
    Oct 2012

    Posted 30 Jun in reply to Kevin Link to this post

    The issue remains the same. I didn't think it'd be a big one to fix but it looks like it's just not getting any attention.
  12. Kevin
    Kevin avatar
    29 posts
    Member since:
    Mar 2012

    Posted 30 Jun in reply to Guy Link to this post

    Telerik, is this in an issue database where we can go vote it up?
  13. Kalin
    Admin
    Kalin avatar
    1266 posts

    Posted 04 Jul Link to this post

    Hi,

    Kevin, the item mentioned by Nasko has been fixed. With the latest version of UI for WPF the unpinned pane gets hidden when looses the focus either from an element inside of DocumentHost or an element outside of the Docking control - please check the attached video. Can you please confirm if you are facing one of explained issues? Which version of UI for WPF are you using?

    Guy - are you facing an issue different than the ones explained above? Can you share some more details? I'm attaching my sample project as well - if you can reproduce it inside, please open up support ticket, so we investigate it our side. We are currently not aware of any other issues similar to those.

    I'm looking forward to your replies.

    Regards,
    Kalin
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  14. Kevin
    Kevin avatar
    29 posts
    Member since:
    Mar 2012

    Posted 17 Jul in reply to Kalin Link to this post

    I have tried my project with the latest release of UI for WPF and I get the same behavior. I have just now submitted a support ticket with a project based on the one above that demonstrates the problem.
Back to Top