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

Prevent RadDropDownButton menu from opening?

3 Answers 80 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Darius
Top achievements
Rank 1
Darius asked on 15 Jul 2010, 06:32 PM
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

3 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 20 Jul 2010, 03:09 PM
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
0
Darius
Top achievements
Rank 1
answered on 20 Jul 2010, 03:27 PM
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
0
Boryana
Telerik team
answered on 23 Jul 2010, 04:59 PM
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
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Darius
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Darius
Top achievements
Rank 1
Share this question
or