close tabpage by double-click?

Answered
0
0

Ok, I know I can display close button on every tabpage, but my client want to close a tabpage by mouse doubleclick on tabpage header. Is it possible? I saw no event to be trigger on mouse double-click on header.

  • You must to post comments
Best Answer
0
0

I would also recommend trying this sample, which is more relevant and simpler!

It creates a handler in C# for the tab button’s double click event through the custom “MyTabControl” class.

Best,

Levie

  • You must to post comments
0
0

Hi Adrian,

It’s possible using JavaScript. Please see the initScript Property of the TabControl (of the attached project). This is a basic format you can use to achieve the double click functionality!

 

You can also play around with the selector to achieve a cleaner format if you want!

Let me know if this helps,

Best,

Levie

  • Adrian Zagar
    Im a beginner to js, but I understand the idea. In my program I add tab pages dynamically by code. Can you guide me for that situation?
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.