Edit this page

OnClientDoubleClick

The OnClientDoubleClick client-side event occurs when the user double-clicks on a tab.

The event handler receives two parameters:

  1. The instance of the tab strip firing the event.

  2. An eventArgs parameter containing the following methods:

  • get_tab returns a reference to the RadTab that was double clicked.

  • get_domEvent returns a reference to the DOM event object for the double click.

You can use this event to perform special actions when the user double-clicks on a tab:

<script type="text/javascript">
function onDoubleClick(sender, eventArgs)
{
  var tab = eventArgs.get_tab();
  // var domEvent = eventArgs.get_domEvent();
  alert (tab.get_text() + " was double-clicked.");
}
</script>
<telerik:RadTabStrip RenderMode="Lightweight" ID="RadTabStrip1" runat="server"
   OnClientDoubleClick="onDoubleClick">
...
</telerik:RadTabStrip>