or
<AppointmentTemplate>
(
<asp:Literal ID="AppointmentStartTime" runat="server" Text='<%# Eval("Start", "{0:t}") %>'></asp:Literal>
-
<asp:Literal ID="AppoitmentEndTime" runat="server" Text='<%# Eval("End", "{0:t}") %>'></asp:Literal>)
<asp:Literal ID="AppointmentSubject" runat="server" Text='<%# Eval("Subject") %>'></asp:Literal>
</AppointmentTemplate>
| Protected Sub RadScheduler1_AppointmentContextMenuItemClicked(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentContextMenuItemClickedEventArgs) |
| Dim strID As String |
| strID = e.Appointment.ID.ToString |
| Commonlib.SendToDick("bbb", "") |
| Select Case e.MenuItem.Value |
| Case Is = "bek" |
| Response.Redirect("visadoc.aspx?doctyp=bek&bokningsid=" & strID) |
| End Select |
| If e.MenuItem.Value = "EnableGrouping" Then |
| RadScheduler1.GroupBy = "Calendar" |
| ElseIf e.MenuItem.Value = "DisableGrouping" Then |
| RadScheduler1.GroupBy = "" |
| End If |
| End Sub |
| <AppointmentContextMenus> |
| <telerik:RadSchedulerContextMenu ID="RadSchedulerContextMenu1" runat="server"> |
| <Items> |
| <telerik:RadMenuItem runat="server" Text="Ändra bokning" Value="andra"> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem runat="server" Text="Skriv ut bekräftelse" Value="bek"> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem runat="server" Text="Skriv ut avtal" Value="avt"> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadSchedulerContextMenu> |
| </AppointmentContextMenus> |
Hello,
When I insert template files from Template Manager, I notice all <Style> tags will be removed. Below steps could repro the problem.1) open notepad and save the following lines as template.htm
---------------
<BODY>
<STYLE type=text/css>
table.custom {
border-width: 1px;
border-spacing: ;
border-style: outset;
border-color: gray;
border-collapse: separate;
background-color: white;
}
table.custom th {
font: bold 11px Arial;
color: #4f6b72;
border-right: 1px solid #C1DAD7;
border-bottom: 1px solid #C1DAD7;
border-top: 1px solid #C1DAD7;
letter-spacing: 2px;
text-transform: uppercase;
text-align: left;
padding: 6px 6px 6px 12px;
background: #CAE8EA url('images/bg_header.jpg') no-repeat;
}
</STYLE>
<TABLE class=custom width="100%">
<TBODY>
<TR>
<TH> Category </TH>
<TH> Comments </TH></TR>
<TR>
<TH class=spec>All: </TH>
<TD class=td style="WIDTH: 90%"></TD></TR>
<TR></TR></TBODY></TABLE></BODY>
------------------------
2) In RadEditor, insert this template.htm from Template Manager. What you get is
---------------
<BODY><TABLE class=custom width="100%">
<TBODY>
<TR>
<TH> Category </TH>
<TH> Comments </TH></TR>
<TR>
<TH class=spec>All: </TH>
<TD class=td style="WIDTH: 90%"></TD></TR>
<TR></TR></TBODY></TABLE></BODY>
----------------
Why Template Manager would like to remove my <style> tag? any workaround? thanks.

