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

RadSplitButton - Clicking Arrow is firing "Click" Event

4 Answers 97 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 04 Oct 2017, 10:27 PM

I have a RadSplitbutton with 6 subitems.    When I click on the arrow, I expect the dropdown menu to be displayed, instead it is first firing the click event of the button, then displaying the menu.  This is not what I wan to happen!

How to I prevent this from happening when trying to select the Arrow?

 

Thanks

 

Jason

 

 

4 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 05 Oct 2017, 09:34 AM
Hi, Jason,

You can use the Click event of the action button:
public RadForm1()
{
    InitializeComponent();
    radSplitButton1.DropDownButtonElement.ActionButton.Click += ActionButton_Click;
}
 
private void ActionButton_Click(object sender, EventArgs e)
{
    
}

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Jason
Top achievements
Rank 1
answered on 05 Oct 2017, 04:56 PM

Thank you, that solves part of my issue.  The second issue is when the click on the button, I want to fire the ActionButton_click Event, but I do NOT want the menu to drop down.  

I only want the menu to drop down if the user clicks on the arrow.

thanks in advance

 

Jason

 

0
Jason
Top achievements
Rank 1
answered on 05 Oct 2017, 05:27 PM

I found the HideDropDown Event which solved my problem

 

thanks

0
Dimitar
Telerik team
answered on 06 Oct 2017, 09:56 AM
Hello, Jason,

I am glad that this is working fine now. Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Jason
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Jason
Top achievements
Rank 1
Share this question
or