How can I force an unpinned Pane to collapse?

8 posts, 0 answers
  1. John
    John avatar
    4 posts
    Member since:
    Jun 2010

    Posted 24 Jun 2010 Link to this post

    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
  2. John
    John avatar
    4 posts
    Member since:
    Jun 2010

    Posted 29 Jun 2010 Link to this post

    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?
  3. DevCraft banner
  4. George
    Admin
    George avatar
    1332 posts

    Posted 29 Jun 2010 Link to this post

    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
  5. John Thompson
    John Thompson avatar
    44 posts
    Member since:
    Dec 2009

    Posted 08 Jul 2010 Link to this post

    Have you tried this?
    if (!pane.IsPinned)
    {
        pane.IsSelected = false;
    }

    This is working in my application.
  6. John
    John avatar
    4 posts
    Member since:
    Jun 2010

    Posted 08 Jul 2010 Link to this post

    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
  7. John Thompson
    John Thompson avatar
    44 posts
    Member since:
    Dec 2009

    Posted 08 Jul 2010 Link to this post

    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.
  8. John
    John avatar
    4 posts
    Member since:
    Jun 2010

    Posted 08 Jul 2010 Link to this post

    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
  9. John Thompson
    John Thompson avatar
    44 posts
    Member since:
    Dec 2009

    Posted 08 Jul 2010 Link to this post

    A pleasure!
Back to Top
DevCraft banner