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

Unpinned Panes next to each other activating each other won't show up the activated pane

5 Answers 19 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Tayyaba
Top achievements
Rank 1
Tayyaba asked on 01 Aug 2018, 07:50 AM

Hi,

If two unpinned panes are next to each other in our mainWindow like shown in this example:
https://github.com/telerik/xaml-sdk/tree/master/Docking/OrderedUnpinnedPanes

 

In this if pane1 and pane2 both are in unpinned state, and inside pane1 if some button activates the pane2 and tries to bring it to the front, it fails.
Because in the time during which pane2 tries to come in the view during that pane1 is just going back to inActive autohidden state due to whichpane2 couldn't come in the view.

Can you please suggest me a solution for this problem. 
I need to fix this issue urgently.

Thanks

5 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 03 Aug 2018, 03:01 PM
Hello Tayyaba,

You should be able to utilize the FlyoutBehavior property of the RadDocking control in order to achieve what you are going for. You can use the ClickFlyoutBehavior which is already implemented or introduce a custom behavior if you want. Here is what I have in mind:
<telerik:RadDocking.FlyoutBehavior>
    <telerik:ClickFlyoutBehavior/>
</telerik:RadDocking.FlyoutBehavior>

You can also check out the ClickFlyoutBehaviorWithAnimation SDK example for a sample implementation of a custom behavior.

I hope you find this helpful. 

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Tayyaba
Top achievements
Rank 1
answered on 07 Aug 2018, 05:39 AM

Hi Vladimir,

Than you for helping me out, but neither I want ClickFlyoutBehaviour nor I've been able to replicate the default FlyOut behaviour by introducing a custom flyout behaviour.
I have already checked this SDK example but couldn't achieve what i want. Can you suggest me some other solution or can you just send me the code for default flyOut behaviour so that i can replicate it and try to resolve my issue.

 

Thank you.

Tayyaba

0
Vladimir Stoyanov
Telerik team
answered on 09 Aug 2018, 02:07 PM
Hello Tayyaba,

I am attaching the OrderedUnpinnedPanes example modified to demonstrate what I had in mind. Basically Pane1 and Pane2 are in unpinned state and setting the IsActive property of Pane2 from a button in Pane1 is working as per your requirements. Can you check the attached project out and let me know if I am missing something? 

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Tayyaba
Top achievements
Rank 1
answered on 10 Aug 2018, 03:42 AM

Hi Vladimir,

Thank you so much for your help but this example only works with the ClickFlyoutBehavior, but I dont want to use ClickFlyoutBehavior. By removing that ClickFlyoutBehavior this example is not working as i wanted.

 

Thanks,

Tayyaba

0
Vladimir Stoyanov
Telerik team
answered on 14 Aug 2018, 08:40 AM
Hello Tayyaba,

Thank you for the update. 

You should also be able to achieve what you are going for with a slightly modified HoverFlyoutBehavior. I have attached the sample project again with the default HoverFlyoutBehavior and a modification in the IFlyoutBehavior.OnPaneDeactivated method. I have included a check to see if the mouse is currently over the Popup containing the RadPane. Please, note that I have not tested this extensively and you might have to modify it to fit your exact scenario. 

Hope this helps.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Docking
Asked by
Tayyaba
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Tayyaba
Top achievements
Rank 1
Share this question
or