How to close the double click function in ribbonTab of the Telerik radRibbonBar?

1 Answer 46 Views
DropDownList Form RibbonBar
Kevin
Top achievements
Rank 1
Iron
Kevin asked on 20 Jul 2023, 06:12 AM

Hello everyone, I want to turn off the hidden function of the ribbonTab drop-down interface after double-clicking the mouse in Telerik's radRibbonBar control. How can I change it? I rewrote the double-click event of the ribbonTab and found that it has no effect. After double-clicking the ribbonTab, it will still be hidden. Thank you.


        private void radRibbonBar1_Load(object sender, EventArgs e)
        {
            foreach (var tab in radRibbonBar1.CommandTabs)
            {
                tab.DoubleClick += new EventHandler(ribbonTab_DoubleClick);
            }
        }

        private void ribbonTab_DoubleClick(object sender, EventArgs e)
        {
            // do nothing
        }

1 Answer, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 24 Jul 2023, 01:20 PM

Hi Kevin,

Thank you for the provided details.

To disable collapsing the ribbon tab on double click, you can set the CollapseRibbonOnTabDoubleClick property to false.

public Form1()
{
    InitializeComponent();
    this.radRibbonBar1.CollapseRibbonOnTabDoubleClick = false;
}

Give this property a try and let me know if further questions arise. 

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Kevin
Top achievements
Rank 1
Iron
commented on 24 Jul 2023, 02:53 PM

Hi Dinko,

Thanks for your replying. It works well for me. and test it very well.This is exactly what I was looking for.

Kind Regards,

Kevin

Tags
DropDownList Form RibbonBar
Asked by
Kevin
Top achievements
Rank 1
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or