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

DropDownButton Question

2 Answers 82 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Helmut
Top achievements
Rank 1
Helmut asked on 08 Jan 2009, 03:23 PM
is the following possible:

i want to have a DropDownButton, but the drop down menu should only collapse, when the arrow part of the button is pressed.
Pressing the "Image" area of the button, the Click event for the button should be fired.

i have not found any way to find out whether tzhe arrow part has been pressed or not.

Edit: Just to make more clear what i want. Look at the "Paste" button in Word. Wenn cou click on it, it does a simple paste, when you click the arrow part it offers some options.
A Gallery could do it, but unfortunately a Gallery Element can't co-exist with other items in the same chunk. At least not in the version i'm using (the one that MS publishes oin the VC# express site).
It doesn't show me the arrow elements. when being the only element in a chunk it is ok.

2 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 09 Jan 2009, 04:53 PM
Hello Helmut,

Thank you for writing.
Probably RadSplitButton is what you need. With RadSplitButton the dropdown stays open even if you press the other part(firing the Click event) of the button.
Note that the Click event also fires when you press the drop down arrow. So instead Click event you may find more suitable use the DefaultItem property which specifies which MenuItem click event will be executed when he button left part is clicked.

For more examples of using RadSplitButton you can review the Buttons -> Split Button section of  our Demo application.

Please write again if you have other problems.

All the best,
Victor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Helmut
Top achievements
Rank 1
answered on 09 Jan 2009, 05:46 PM
Hi Victor,

yes, that did it.
I didn't realize the DefaultItem property. now it works as i wanted,

thanks for your help.

Helmut
Tags
RibbonBar
Asked by
Helmut
Top achievements
Rank 1
Answers by
Victor
Telerik team
Helmut
Top achievements
Rank 1
Share this question
or