I have used this tutorial:
http://www.telerik.com/support/kb/aspnet-ajax/window/adding-a-custom-button-to-radwindow-titlebar.aspx
to add a custom button to the title bar of my RadWindow. I now want to add a RadToolTip to that button, so that when I click it I get a nice sticky tooltip which I can use in various ways. but for the life of me I can't get it working. Does anyone have any examples of doing this? I've tried specifying a unique ID for my command button, then using that in conjunction with the tooltip, but it doesn't appear to be working.
my tooltip is defined as such:
<telerik:RadToolTip Animation="Slide" ID="shellRadToolTip" IsClientID="true" Position="BottomLeft" runat="server" ShowEvent="OnClick" style="z-index:10000 !important;" TargetControlID="btnSwitchSite">
<div>
TOOLTIP
</div>
</telerik:RadToolTip>
my custom button looks like this:
<li><a id="btnSwitchSite" class="rwControlButtonSite" href="javascript:void(0)" ></a></li>
and if I add this code and try to handle it manually:
<li><a id="btnSwitchSite" class="rwControlButtonSite" href="javascript:void(0)" onmousedown="winShell_Site(event);"></a></li>
function winShell_Site(e) {
var radToolTip = $find('<%= shellRadToolTip.ClientID %>');
radToolTip.set_text('This is the new tool tip text to display');
radToolTip.show();
//alert(radToolTip.get_targetControlID());
}
the tooltip will only show if I uncomment the alert, but it does so at the bottom of the RadWindow, and not anywhere near the control it should be associated with.
http://www.telerik.com/support/kb/aspnet-ajax/window/adding-a-custom-button-to-radwindow-titlebar.aspx
to add a custom button to the title bar of my RadWindow. I now want to add a RadToolTip to that button, so that when I click it I get a nice sticky tooltip which I can use in various ways. but for the life of me I can't get it working. Does anyone have any examples of doing this? I've tried specifying a unique ID for my command button, then using that in conjunction with the tooltip, but it doesn't appear to be working.
my tooltip is defined as such:
<telerik:RadToolTip Animation="Slide" ID="shellRadToolTip" IsClientID="true" Position="BottomLeft" runat="server" ShowEvent="OnClick" style="z-index:10000 !important;" TargetControlID="btnSwitchSite">
<div>
TOOLTIP
</div>
</telerik:RadToolTip>
my custom button looks like this:
<li><a id="btnSwitchSite" class="rwControlButtonSite" href="javascript:void(0)" ></a></li>
and if I add this code and try to handle it manually:
<li><a id="btnSwitchSite" class="rwControlButtonSite" href="javascript:void(0)" onmousedown="winShell_Site(event);"></a></li>
function winShell_Site(e) {
var radToolTip = $find('<%= shellRadToolTip.ClientID %>');
radToolTip.set_text('This is the new tool tip text to display');
radToolTip.show();
//alert(radToolTip.get_targetControlID());
}
the tooltip will only show if I uncomment the alert, but it does so at the bottom of the RadWindow, and not anywhere near the control it should be associated with.