Overflowbutton dropdownmenu does not close when element is chosen

4 posts, 0 answers
  1. Atle
    Atle avatar
    13 posts
    Member since:
    Dec 2007

    Posted 24 Jul 2008 Link to this post

    Hi,

    I have a toolstrip with many buttons on it. When the form is small many buttons end up in the overflow dropdown menu as they should. But when I open the overflow dropdown menu and click an item the meny stays open until i give focus to another control. This is not a desired effect for me. It does not look good when the item clicked opens a modal dialog and the dropdownmenu is still visible on top of it. I can also click the item several times and open severeal modal windows as well!!!

    What can i do to make the meny close when an item is clicked?

    Reagrds,
    Atle
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 24 Jul 2008 Link to this post

    Hi Atle,

    Thank you for writing.

    We are using a standard drop down button with a special primitive for drawing the arrow.

    I would suggest you try closing the drop down menu using the following code:
          this.radToolStripItem1.OverflowManager.DropDownButton.HideDropDown() ?

    If you have any problems with the suggested workaround please write me back.
         
    Sincerely yours,
    Boyko Markov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Atle
    Atle avatar
    13 posts
    Member since:
    Dec 2007

    Posted 31 Jul 2008 Link to this post

    Hi again,

    The workaround did solve the problem, but it required some work to decide where and when to call HideDropDown. Anyway...another issue I hope you can help me with:

    When resizing the form the order of the items in the overflow dropdownmenu depends on how the form is resized. If dropdownmenu is empty and I make the form smaller so all items in the toolstrip goes into the overflow button, the items in the dropdownmenu gets the same order as when they where in the toolstrip. This is the way I want it. But if I make the the form a little bit smaller (so only 1 button goes into the dropdownmenu), stops, and then makes it even smaller so more buttons go into the overflow button. The first button is then first in the dropdown menu....
    Is there a way I can make the order in the dropdown menu always be simillar to the order in the toolstrip?
  5. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 04 Aug 2008 Link to this post

    Hi Atle,

    Thank you for writing us.

    I confirm this issue, but currently there is no workaround of this behavior. We will work for fixing it, but I'm not able to give you an exact time-frame when this will happen.

    If you have any additional questions please write me back.


    Best wishes,
    Boyko Markov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top