DropDownButton Question

3 posts, 0 answers
  1. Helmut
    Helmut avatar
    5 posts
    Member since:
    Aug 2008

    Posted 08 Jan 2009 Link to this post

    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. Victor
    Victor avatar
    1358 posts

    Posted 09 Jan 2009 Link to this post

    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,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Helmut
    Helmut avatar
    5 posts
    Member since:
    Aug 2008

    Posted 09 Jan 2009 Link to this post

    Hi Victor,

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

    thanks for your help.

Back to Top