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

Overflowbutton dropdownmenu does not close when element is chosen

3 Answers 77 Views
Toolstrip (obsolete as of Q3 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Atle
Top achievements
Rank 1
Atle asked on 24 Jul 2008, 07:06 AM
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

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 24 Jul 2008, 02:41 PM
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.
0
Atle
Top achievements
Rank 1
answered on 31 Jul 2008, 12:25 PM
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?
0
Boyko Markov
Telerik team
answered on 04 Aug 2008, 12:17 PM
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.
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
Atle
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Atle
Top achievements
Rank 1
Share this question
or