New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Associate RadToolTip with RadToolBarButton

Since 2016 Q1 SP1 custom attributes as well as id are not rendered for the RadToolBarButton, thus the RadToolTip's TargetControlID property cannot be used to set the RadToolBarButton as target. This topic shows how RadToolTip can be associated with RadToolBarButton without using this property.

<telerik:RadToolBar ID="RadToolBar1" runat="server" Width="300px" OnClientMouseOver="OnClientMouseOver">
        <telerik:RadToolBarButton Text="ToolTip added on mouseover" Value="Add" CommandName="add">
        <telerik:RadToolBarButton Text="No tooltip"></telerik:RadToolBarButton>

<telerik:RadToolTip ID="RadToolTip1" RelativeTo="Element" runat="server" ShowEvent="FromCode" HideEvent="LeaveTargetAndToolTip">
        My Custom ToolTip

<script type="text/javascript">
    function ShowToolTip(element) {
        var tooltip = $find("<%=RadToolTip1.ClientID%>");

    function OnClientMouseOver(sender, args) {
        var button = args.get_item();
        var sCommandName = button.get_commandName();
        if (sCommandName == 'add') {
In this article