<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" Inherits="TEST_Default" %> <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"></telerik:RadScriptManager> <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="BottomRight" RelativeTo="Mouse" Animation="Resize" HideEvent="LeaveTargetAndToolTip" Skin="WebBlue"> <TargetControls> <telerik:ToolTipTargetControl TargetControlID="viewAgentLink" /> </TargetControls> </telerik:RadToolTipManager> <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" CssClass="RadAjax" Transparency="60"> <div class="raDiv"></div> <div class="raColor raTransp"></div> </telerik:RadAjaxLoadingPanel> <asp:Label ID="viewAgentLink" runat="server" CssClass="agentLink">view agent details</asp:Label> </form> </body> </html>
Imports Telerik.Web.UI Partial Class TEST_Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load System.Threading.Thread.Sleep(100) End Sub Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate If e.TargetControlID = "viewAgentLink" Then Dim contentCtrl As Control = Page.LoadControl("AgentDetailsControl.ascx") e.UpdatePanel.ContentTemplateContainer.Controls.Add(contentCtrl) CType(sender, RadToolTipManager).Title = "Agent Details" End If End Sub End Class
PS: I have not included the usercontrol file/code, but you can use any user control with Lorem Ipsum text in it.
I am using an Ajax-enabled RadCalendar. The calendar is using SpecialDays to identify event dates on the calendar, and I am dynamically assigning the special days based on values I pull from my database when the control loads. All of this works as expected, and I see the desired css-decoration of the event dates. However, I also give my user the option of changing his location via a drop-down. When the user chooses a new location, the SelectedIndexChanged event is fired, and the database is re-queried for a new list of event dates.
I am trying to use this new list of event dates to re-build the SpecialDays list. And, in fact, I am able to clear the current SpecialDays list, and populate it with the new dates. However, I can’t get the new SpecialDays to display without refreshing the entire page. How do I code this control so that the new SpecialDays list will display without doing a refresh?
I am new to posting in your forums, so I am not sure what additional information you may need. Let me know if you need any additional information.
Thanks in advance!
function DateSelectedFirstPref(sender, args) {
if (!isTimeSelected) {
var val = "08:00:00";
var dateString = sender._dateInput._initialValue;
var month = dateString.split("/")[0];
var day = dateString.split("/")[1];
var yearTime = dateString.split("/")[2];
var year = yearTime.split(" ")[0];
sender.set_selectedDate(new Date(year, month, day, val.split(":")[0], val.split(":")[1], val.split(":")[2], 0));
}
}