What am I doing wrong? 1. I want user to hover over label 2. tool tip comes up 3. They pick 2 dates and click OK button 4. Label shows the 2 new dates What's happening is 1. Can't get button to close the tooltip (I COULD do it in Javascript,
but then how do I also get it to execute the javascript to update the dates?
(server side code getting client-sided by the script manager) 2. The update works once ... but then the tool tip will NEVER show again ...
once I've changed the text of the label - I promise you, it will not show again. 3. Just to test that I wasn't doing something wrong ...
I wrapped the label in a div (with runat="server" and an ID,) and made thatthe target control for the
tooltip - then it worked over and over again, but if the label itself is the target,
it will only work once. I'm a telerik newbie ... so liklely doing something wrong. aspx.vb code is followed by aspx code:
THANKS IN AVANCE!!! Protected Sub Button1_Click1(sender As Object, e As EventArgs) Handles Button1.Click Dim f = from.SelectedDate.ToString("MM/dd/yyyy") Dim t = too.SelectedDate.ToString("MM/dd/yyyy") lblDates.Text = f & " " & t End Sub <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"> </asp:ScriptReference> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"> </asp:ScriptReference> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"> </asp:ScriptReference> </Scripts> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="AjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="Button1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="lblDates" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <asp:Label ID="lblDates" runat="server" Text="pre text"></asp:Label> <telerik:RadToolTip runat="server" ID="hello" TargetControlID="lbldates" RenderInPageRoot="True" HideEvent="FromCode" HideDelay="0" AnimationDuration="0" AutoCloseDelay="0" ShowDelay="0" RelativeTo="Mouse" Sticky="True" > from: <telerik:RadCalendar ID="from" runat="server" EnableMultiSelect="False"> </telerik:RadCalendar> to: <telerik:RadCalendar ID="too" runat="server" EnableMultiSelect="False"> </telerik:RadCalendar> <asp:Button ID="Button1" runat="server" Text="Button" /> </telerik:RadToolTip> </asp:Content>