This is a migrated thread and some comments may be shown as answers.
RadPane not auto-hiding when pane content selected
13 Answers 55 Views
This is a migrated thread and some comments may be shown as answers.
Guy
Top achievements
Rank 2
Guy asked on 02 Dec 2014, 11:05 AM
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

13 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 03 Dec 2014, 01:23 PM
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.

 
0
Guy
Top achievements
Rank 2
answered on 03 Dec 2014, 01:30 PM
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
0
Nasko
Telerik team
answered on 05 Dec 2014, 11:52 AM
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.

 
0
Vikas
Top achievements
Rank 1
answered on 05 Dec 2014, 04:55 PM
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
0
Nasko
Telerik team
answered on 08 Dec 2014, 10:02 AM
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.

 
0
Vikas
Top achievements
Rank 1
answered on 08 Dec 2014, 03:08 PM
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
0
Vikas
Top achievements
Rank 1
answered on 08 Dec 2014, 03:09 PM
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
0
Nasko
Telerik team
answered on 10 Dec 2014, 04:14 PM
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.

 
0
Kevin
Top achievements
Rank 1
answered on 29 Jun 2017, 07:15 PM
Nasko posted on 5 Dec 2014 that he had reproduced this issue and would investigate it further. Was it ever fixed or resolved?
0
Guy
Top achievements
Rank 2
answered on 30 Jun 2017, 06:52 AM
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.
0
Kevin
Top achievements
Rank 1
answered on 30 Jun 2017, 12:57 PM
Telerik, is this in an issue database where we can go vote it up?
0
Kalin
Telerik team
answered on 04 Jul 2017, 11:06 AM
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.
0
Kevin
Top achievements
Rank 1
answered on 17 Jul 2017, 04:37 PM
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.
Asked by
Guy
Top achievements
Rank 2
Answers by
Nasko
Telerik team
Guy
Top achievements
Rank 2
Vikas
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or