| protected void Scheduler_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) |
| { |
| RadToolTip tooltip = new RadToolTip(); |
| tooltip.ID = "tooltip"; |
| tooltip.TargetControlID = e.Appointment.ClientID; |
| tooltip.IsClientID = true; |
| tooltip.Animation = ToolTipAnimation.Resize; |
| tooltip.Sticky = true; |
| tooltip.ContentScrolling = ToolTipScrolling.Auto; |
| tooltip.RelativeTo = ToolTipRelativeDisplay.Mouse; |
| StringBuilder sb = new StringBuilder(); |
| sb.AppendFormat(e.Appointment.Subject); |
| sb.Append(" "); |
| sb.AppendFormat("{0}{1}{2}", e.Appointment.Start.ToShortTimeString(), " - ", |
| e.Appointment.End.ToShortTimeString()); |
| e.Appointment.ToolTip = string.Empty; |
| tooltip.Text = "Something wonderful!"; |
| e.Container.Controls.Add(tooltip); |
| } |
| protected void Scheduler_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) |
| { |
| RadToolTip tooltip = new RadToolTip(); |
| tooltip.ID = "tooltip"; |
| tooltip.TargetControlID = e.Appointment.ClientID; |
| tooltip.IsClientID = true; |
| tooltip.Animation = ToolTipAnimation.Resize; |
| tooltip.Sticky = true; |
| tooltip.ContentScrolling = ToolTipScrolling.Auto; |
| tooltip.RelativeTo = ToolTipRelativeDisplay.Mouse; |
| StringBuilder sb = new StringBuilder(); |
| sb.AppendFormat(e.Appointment.Subject); |
| sb.Append(" "); |
| sb.AppendFormat("{0}{1}{2}", e.Appointment.Start.ToShortTimeString(), " - ", |
| e.Appointment.End.ToShortTimeString()); |
| e.Appointment.ToolTip = string.Empty; |
|
Button button = new Button(); |
|
button.ID = "btnA"; |
|
button.Text = "Button in a ToolTip"; |
|
tooltip.Controls.Add(button); |
| e.Container.Controls.Add(tooltip); |
| } |
It only works in my javascript function - Telerik.Web.UI.InputErrorReason.OutOfRange. But the actual calendar still let's me pick between 1980 and 2099.
Even though the mindate is set to 01/01/2008 and the maxdate is set to 03/29/2008. I'm passing 2 parameters/properties into the usercontrol.
public DateTime DateFrom
{
get { return this.RadDatePicker1.MinDate; }
set { this.RadDatePicker1.MinDate = value; }
}
public DateTime DateTo
{
get { return this.RadDatePicker1.MaxDate; }
set { this.RadDatePicker1.MaxDate = value; }
}

I want to do this dynamically in the codebehind. Is that possible?
<HeaderTemplate>
<div>
<table style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 25%;">
User Id
</td>
<td style="width: 25%;">
Name
</td>
<td style="width: 50%;">
Depart
</td>
</tr>
</table>
</div>
</HeaderTemplate>
<ItemTemplate>
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 25%;">
<div >
<%
# DataBinder.Eval(Container.DataItem, "id")%>
</div>
</td>
<td style="width: 25%;">
<div >
<%
# DataBinder.Eval(Container.DataItem, "name") %>
</div>
</td>
<td style="width: 50%;">
<div >
<%
# DataBinder.Eval(Container.DataItem, "dep")%>
</div>
</td>
</tr>
</table>
</ItemTemplate>
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="testradwindowiframe.aspx.cs" Inherits="Test_testradwindowiframe" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <html> |
| <head> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <script language="javascript" type="text/javascript"> |
| var oWnd; |
| function Test(wizardID) |
| { |
| oWnd = $find( '<%= TestPopupWindow.ClientID %>' ); |
| oWnd.setUrl('http://www.yahoo.com'); |
| oWnd.show(); |
| } |
| function TestClientCallBack(radWindow, returnParameters) |
| { |
| } |
| </script> |
| <asp:ScriptManager ID="ScriptManager1" runat="server" /> |
| <telerik:RadWindowManager id="Singleton" runat="server" Skin="Vista"> |
| <windows> |
| <telerik:RadWindow ID="TestPopupWindow" runat="server" Height="300" Width="300" |
| DestroyOnclose="false" |
| Modal="true" |
| VisibleStatusbar="false" |
| VisibleTitlebar = "true" |
| NavigateUrl="" |
| Title = "Test" |
| Behaviors="Close,Move" |
| ClientCallBackFunction="TestClientCallBack" |
| /> |
| </windows> |
| </telerik:RadWindowManager> |
| <a href="javascript:void(0)" onclick="javascript:Test(0)">Test(0)</a> |
| <iframe id="ViewWizardSummaryIFrame" width="20" height="20"/> |
| <p>Test Page</p> |
| </form> |
| </body> |
| </html> |