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

How can I force an unpinned Pane to collapse?

7 Answers 124 Views
Docking
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 24 Jun 2010, 04:53 PM
Is there a programmatic way to collapse a Pane that has IsPinned = false?  I want to select an item in the RadPane, which triggers an action in another part of the UI, and I would then like the unpinned RadPane to politely get out of the way.  Instead it just sits there until I explicitly click the mouse on the other control (calling SetFocus on the other control did not appear to help.)  I am looking for a RadPane::Collapse method.  Setting IsHidden = true is too aggressive - the anchor on the side of the widow gets wiped out when this is set (the Telerik chm files refer to the Collapsed state as hidden...this is a bit misleading.)

Thank you
John

7 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 29 Jun 2010, 01:30 PM
Checking back again...is there any way to do this?  "Under the covers", it appears that the pane waits for the mouse to no longer be over it before it gets hidden, unless it is forcibly pinned then unpinned, which yields a horrible user experience.

Any insights?
0
George
Telerik team
answered on 29 Jun 2010, 03:53 PM
Hello John,

Thank you for contacting us.

Thank you for suggesting this feature, it helps us in improving our products.

Unfortunately, this feature is not supported in our latest release. You can track its progress and vote for it in our Public Issue Tracking System here. If we receive enough clients' requests we will consider implementing it. 

I hope this information helps. I will be glad to assist you further.

All the best,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
John Thompson
Top achievements
Rank 2
answered on 08 Jul 2010, 02:34 PM
Have you tried this?
if (!pane.IsPinned)
{
    pane.IsSelected = false;
}

This is working in my application.
0
John
Top achievements
Rank 1
answered on 08 Jul 2010, 03:23 PM
Thank you John...no luck.  My situation is a single pane docked left that presents a list.  Selecting (double-click) an item in the list brings up a tab in the "body area."  Right now, becuase the unpinned pane cannot be programatically collapsed, it is hard to tell that the new tab has in fact been opened, as (at least for the first few) the tab is obscured by the pop-out list - this invariably leads to a flurry of double-clicks.  Explicitly setting focus outside the pane only works once the mouse has been moved off of the pane.

Thanks just the same.
John
0
John Thompson
Top achievements
Rank 2
answered on 08 Jul 2010, 03:35 PM
I have a similar situation.  A docked left pane with a tree view that allows users to select an item to be loaded in the document host's grid view.  Perhaps if I share the method I use it might help.

When an leaf item is selected in the auto hide pane's tree view, I start the data load process using a RIA domain service.  In the completed event of the load operation I set the document host's grid view to focused e.g. view.Focus().  In the GotFocus() event handler for the grid view I use the code I posted earlier.
0
John
Top achievements
Rank 1
answered on 08 Jul 2010, 06:20 PM
That did the trick.  I was missing the SetFocus call in addition to the code you provided.  Thank you very much John - I appreciate both the initial attempt to resolve this as well as the prompt follow-up.  My client's mice will last a whole lot longer now that we will be eliminating the spurious double-clicks :) 
--John
0
John Thompson
Top achievements
Rank 2
answered on 08 Jul 2010, 06:34 PM
A pleasure!
Tags
Docking
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
George
Telerik team
John Thompson
Top achievements
Rank 2
Share this question
or