Prevent RadDropDownButton menu from opening?

4 posts, 0 answers
  1. Darius
    Darius avatar
    23 posts
    Member since:
    May 2008

    Posted 15 Jul 2010 Link to this post

    Hello, I am using a button that has "Take Attendance" on the face and "All Present" and "All Absent" on the dropdown menu. Basically, I need to separate the menu so that it doesn't open when the face is clicked. Microsoft apps work this way. There is a main command and you can select the dropdown only if you need more choices. I know about the split button but I am having problems with the way it's styled.  I was hoping I'd be able to cancel the menu when the ActionButton is clicked and not cancel it when the arrow is clicked but it seems that the sender is the same in both cases.

    Private Sub ButtonTakeAttendance_DropDownOpening(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles ButtonTakeAttendance.DropDownOpening
     
        If TypeOf (sender) Is RadDropDownButtonElement Then
     
            e.Cancel = True
     
        End If
     
    End Sub


    Any ideas? Thanks.

    --DT
  2. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 20 Jul 2010 Link to this post

    Hi Darius,

    Thank you for contacting us.

    As far as I understand you are seeking the functionality of RadSplitButton. However, you are not using this control, because you have meet difficulties styling it. If this is the case, I highly recommend you to share your styling issues with RadSplitButton, so that we can assist you. Please note that customizing the appearance of RadSplitButton is times much easier, than overriding the behavior of RadDropDownButton. Once you point the difficulties you are experiencing, I will assist you to sort them out.

    I am looking forward to your reply.

    Kind regards,
    Boryana
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Darius
    Darius avatar
    23 posts
    Member since:
    May 2008

    Posted 20 Jul 2010 Link to this post

    Boryana, thank you for your reply. Please try the following:

    1. Add ToggleButton, DropDownButton, and SplitButton to a ribbon group.
    2. Set StretchVertically to True.
    3. Set ArrowPosition to Bottom.

    You will notice that toggle and dropdown look flat, while split looks 3D. Also, when hovering, the other buttons get a golden color with a border, while the split button becomes blue with no border.

    What's the best way to fix this? Thanks.

    --DT
  5. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 23 Jul 2010 Link to this post

    Hi Darius,

    Thanks for writing back.

    Actually, the appearance of RadSplitButtonElement should not differ from the appearance of RadDropDownButtonElement. Our team would like to thank you for bringing this issue to our attention and apologize for the inconvenience it may cause. This issue will be addressed in future releases. At the moment I can provide a workaround which is demonstrated in the attached project.

    Thank you for your understanding and cooperation. Your telerik points have been updated. I hope that the provided solution meets your requirements. Let me know if you need further assistance. I will be glad to help.

    Sincerely yours,
    Boryana
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top