Collapse RadRibbonGallery

6 posts, 0 answers
  1. Italo
    Italo avatar
    7 posts
    Member since:
    Apr 2011

    Posted 05 Oct 2011 Link to this post

    How do I collapse a RadRibbonGallery? Before 2011 Q2 SP1 I was able to do it with the code below.

    var ddb = ribbonGallery.ChildrenOfType<RadRibbonDropDownButton>().FirstOrDefault();
    if( ddb != null )
        ddb.IsOpen = false;
     

    Thanks,
    Italo
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 10 Oct 2011 Link to this post

    Hello Italo,

    Can you please elaborate on your issue? I tested your code on our side using the latest official release of our controls - Q2 2011 SP1 (version 2011.2.0920). The RadRibbonDropDownButton is found and its IsOpen property is properly set.

    Can you send us a sample application reproducing the issue? Also, if you can elaborate on your scenario, we will let you know if there are other approaches that you can use to implement it.

    Best wishes,
    Tina Stancheva
    the Telerik team

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

  3. DevCraft banner
  4. Italo
    Italo avatar
    7 posts
    Member since:
    Apr 2011

    Posted 10 Oct 2011 Link to this post

    Yes, the element is found. However, IsOpen always returns false. What I’m trying to do is initiate a drag operation from an expanded RadRibbonGallery, after the drag is started, I close it by using the provided code. This used to work great before Q2 2011 SP1.

     

    Thanks,

    Italo

  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 11 Oct 2011 Link to this post

    Hi Italo,

    The RadDragAndDropManager was recently improved and new functionality was added to the control. This might be the root of the issue.

    Can you set the following property:
    public MainPage()
    {
        RadDragAndDropManager.ExecutionMode = DragExecutionMode.Legacy;
        InitializeComponent();
    }
    and let me know if that fixes the issue. If it doesn't help, can you please send us a sample project or a code snippet illustrating how you implement the drag/drop logic and in which event you close the gallery popup?

    Thank you in advance for your cooperation on the matter.

    Kind regards,
    Tina Stancheva
    the Telerik team

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

  6. Christopher
    Christopher  avatar
    3 posts
    Member since:
    Aug 2011

    Posted 20 Oct 2011 Link to this post

    For anyone following up on this thread, I wanted to let you know that I had a similar problem, where the drop query handler was not being called if the ribbon gallery popup was open, and setting it to legacy mode fixed this for me. Thanks!
  7. Peter
    Peter avatar
    9 posts
    Member since:
    Apr 2011

    Posted 03 Feb 2012 Link to this post

    I had the same problem and fix.
Back to Top
DevCraft banner