RadSplitButton - Clicking Arrow is firing "Click" Event

5 posts, 0 answers
  1. Jason
    Jason avatar
    16 posts
    Member since:
    Nov 2013

    Posted 04 Oct 2017 Link to this post

    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

     

     

  2. Dimitar
    Admin
    Dimitar avatar
    2949 posts

    Posted 05 Oct 2017 Link to this post

    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.
  3. Jason
    Jason avatar
    16 posts
    Member since:
    Nov 2013

    Posted 05 Oct 2017 in reply to Dimitar Link to this post

    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

     

  4. Jason
    Jason avatar
    16 posts
    Member since:
    Nov 2013

    Posted 05 Oct 2017 in reply to Jason Link to this post

    I found the HideDropDown Event which solved my problem

     

    thanks

  5. Dimitar
    Admin
    Dimitar avatar
    2949 posts

    Posted 06 Oct 2017 Link to this post

    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.
Back to Top