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

How to force a docked pane to collapse?

11 Answers 128 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 14 Sep 2011, 07:11 PM
I have a pane that's docked and unpinned.  If it's visible (expanded), how can I force it to collapse (as if the user had clicked their mouse in another window or changed the focus).  Setting dock's ActivePane property to null seems to have no effect.

The reason for this is because a modal RadWindow (or Alert) is shown beneath the expanded pane.  I need a workaround for this bug.

We're using version 2011.2.712.1040

Thanks

 

11 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 19 Sep 2011, 03:14 PM
Hi Michael,

We've tested the described scenario and setting ActivePane works at our side. Also you could try setting IsHidden property of the unpinned pane.

Best wishes,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Michael
Top achievements
Rank 1
answered on 20 Sep 2011, 09:04 PM
Won't 'IsHidden' make the unpinned window completely disappear?  We still want the window to be available when the modal dialog is closed.

In your test, make sure you don't select the unpinned window (by clicking on its titlebar for example).  If you select it with the mouse, the problem doesn't occur.  We make the unpinned window appear in code when it's required:

view.DockingPanel.ActivePane = pane;
pane.IsSelected = true;

Next, do a ShowDialog on a new rad window

I see this behavior (attached)

0
Yana
Telerik team
answered on 22 Sep 2011, 04:14 PM
Hello Michael,

You're right about IsHidden property - I'm sorry for my confusion.

Actually this issue is already fixed in the Q2 SP release, could you please download it and give it a try?

All the best,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Muhammad Jamil Nawaz
Top achievements
Rank 2
answered on 29 Oct 2011, 12:22 AM
Hello Yana,

I am also facing same problem. I read this thread and upgraded to latest version but I am getting same behaviour. When I do Pane.IsHidden = true, it completely disappear from pane group. I also do RadDocking.ActivePane = null but no effect.

I posted question to telerik but there I ask in different way. But in actual, I got the same behaviour as described here in this thread.
http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=478050




Regards,
JAMIL
0
Yana
Telerik team
answered on 02 Nov 2011, 09:32 AM
Hello Jamil,

We've answered already to the support ticket.  I suggest to continue the communication there.

Best wishes,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Thomas
Top achievements
Rank 1
answered on 08 Mar 2012, 09:56 AM
Same problem here.

(Posting the answer here in the forum and not only in the support ticket might help others too...)
0
Yana
Telerik team
answered on 09 Mar 2012, 02:45 PM
Hi Thomas,

This was a specific case, that's why we didn't post it in the forums.
Please send us more details about your scenario and/or some sample code, so we to be able to reproduce the issue. Thanks

Kind regards,
Yana
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Markus Hopfenspirger
Top achievements
Rank 2
answered on 13 Nov 2013, 04:59 PM

I had the same Problem... When I put a Button on the unpinned Pane and open a File Save Dialog from this button, the System Dialog and all ist Message Boxes appear below the RadPane... which is not the best.

My solution is:

if (_pane.IsPinned == false) {

 _pane.IsHidden = true;

 _pane.IsHidden = false;

}

Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() => Foo(...)));

Nice greetings,
Markus

0
Yana
Telerik team
answered on 19 Nov 2013, 08:30 AM
Hello Markus,

I have tried to reproduce this issue in a simple project, but without much success, you can find the test project I've used attached to this thread. Could you please download it and give it a try? What is different in your case? Can you modify it and send it back to us? Note that you should open a support ticket and attach it there.

Regards,
Yana
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Markus Hopfenspirger
Top achievements
Rank 2
answered on 19 Nov 2013, 09:02 AM
Hello Yana,

Sorry for the confusion, but my Project is a WPF project... (See Support Ticket...)

Here you can make one of the panes containing the Button "Press me" Floating and then press the Button. The File Open Dialog opens below the Floating Pane...

Kind regards,
Markus

0
Yana
Telerik team
answered on 20 Nov 2013, 08:30 AM
Hello Markus,

Thank you for sending the additional details, we will check the ticket.

Regards,
Yana
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Docking
Asked by
Michael
Top achievements
Rank 1
Answers by
Yana
Telerik team
Michael
Top achievements
Rank 1
Muhammad Jamil Nawaz
Top achievements
Rank 2
Thomas
Top achievements
Rank 1
Markus Hopfenspirger
Top achievements
Rank 2
Share this question
or