or
| <telerik:RadScheduler ID="rsTasks" runat="server" DayEndTime="23:59:59" EnableRecurrenceSupport="False" |
| Width="1024px" WorkDayEndTime="23:59:59" StartInsertingInAdvancedForm="True"> |
| <Localization AdvancedAllDayEvent="All day" /> |
| <AdvancedForm DateFormat="dd/MM/yyyy" Modal="True" TimeFormat="h:mm tt" /> |
| <TimelineView UserSelectable="False" /> |
| <AdvancedEditTemplate> |
| <div class="row"> |
| <span class="label">Description:</span> |
| <telerik:RadTextBox ID="txtDescription" runat="server" Text='<%#Bind("Subject") %>' |
| MaxLength="100" Width="280px"> |
| </telerik:RadTextBox> |
| </div> |
| <div class="row"> |
| <span class="label">Date/Time:</span> |
| <telerik:RadDateTimePicker ID="dtpDateToPurchase" runat="server" SelectedDate='<%# Bind("Start") %>'> |
| <Calendar ShowOtherMonthsDays="False" ShowRowHeaders="False" UseColumnHeadersAsSelectors="False" |
| UseRowHeadersAsSelectors="False" ViewSelectorText="x"> |
| </Calendar> |
| <TimeView CellSpacing="-1" Culture="English (Canada)" Interval="00:30:00" StartTime="08:00:00" |
| EndTime="23:59:59" Columns="4"> |
| </TimeView> |
| <TimePopupButton HoverImageUrl="" ImageUrl="" /> |
| <DatePopupButton HoverImageUrl="" ImageUrl="" /> |
| </telerik:RadDateTimePicker> |
| </div> |
| <div class="row"> |
| <span class="label">Property:</span> |
| <telerik:RadComboBox ID="ddlProperty" runat="server" Width="280px"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </telerik:RadComboBox> |
| </div> |
| <div class="row"> |
| <span class="label">Assigned To:</span> |
| <telerik:RadComboBox ID="ddlBuyer" runat="server" Width="280px" AllowCustomText="true" |
| Filter="Contains" ShowDropDownOnTextboxClick="true" ShowToggleImage="false"> |
| </telerik:RadComboBox> |
| </div> |
| <div class="row"> |
| <span class="label">Staus:</span> |
| <telerik:RadComboBox ID="ddlStatus" runat="server"> |
| <Items> |
| <telerik:RadComboBoxItem Text="Not Completed" Value="0" /> |
| <telerik:RadComboBoxItem Text="Completed" Value="1" /> |
| </Items> |
| </telerik:RadComboBox> |
| </div> |
| <div class="button-row"> |
| <asp:LinkButton ID="btnSave" runat="server" Text="Save" CommandName="Update" /> |
| <asp:LinkButton ID="btnCancel" runat="server" Text="Save" CommandName="Cancel" CausesValidation="false" /> |
| </div> |
| </AdvancedEditTemplate> |
| <AdvancedInsertTemplate> |
| <div class="row"> |
| <span class="label">Description:</span> |
| <telerik:RadTextBox ID="txtDescription" runat="server" MaxLength="100" Width="280px" |
| Text='<%# Bind("Subject") %>'> |
| </telerik:RadTextBox> |
| </div> |
| <div class="row"> |
| <span class="label">Date/Time:</span> |
| <telerik:RadDateTimePicker ID="dtpDateToPurchase" runat="server" SelectedDate='<%# Bind("Start") %>'> |
| <Calendar ShowOtherMonthsDays="False" ShowRowHeaders="False" UseColumnHeadersAsSelectors="False" |
| UseRowHeadersAsSelectors="False" ViewSelectorText="x"> |
| </Calendar> |
| <TimeView CellSpacing="-1" Culture="English (Canada)" Interval="00:30:00" StartTime="08:00:00" |
| EndTime="23:59:59" Columns="4"> |
| </TimeView> |
| <TimePopupButton HoverImageUrl="" ImageUrl="" /> |
| <DatePopupButton HoverImageUrl="" ImageUrl="" /> |
| </telerik:RadDateTimePicker> |
| </div> |
| <div class="row"> |
| <span class="label">Property:</span> |
| <telerik:RadComboBox ID="ddlProperty" runat="server" Width="280px"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </telerik:RadComboBox> |
| </div> |
| <div class="row"> |
| <span class="label">Assigned To:</span> |
| <telerik:RadComboBox ID="ddlBuyer" runat="server" Width="280px" AllowCustomText="true" |
| Filter="Contains" ShowDropDownOnTextboxClick="true" ShowToggleImage="false"> |
| </telerik:RadComboBox> |
| </div> |
| <div class="row"> |
| <span class="label">Status:</span> |
| <telerik:RadComboBox ID="ddlStatus" runat="server"> |
| <Items> |
| <telerik:RadComboBoxItem Text="Not Completed" Value="0" /> |
| <telerik:RadComboBoxItem Text="Completed" Value="1" /> |
| </Items> |
| </telerik:RadComboBox> |
| </div> |
| <div class="button-row"> |
| <asp:LinkButton ID="btnSave" runat="server" Text="Save" CommandName="Insert" /> |
| <asp:LinkButton ID="btnCancel" runat="server" Text="Save" CommandName="Cancel" CausesValidation="false" /> |
| </div> |
| </AdvancedInsertTemplate> |
| </telerik:RadScheduler> |
.ruBrowse{ background-position: 0 -46px !important; width: 117px !important;}.RadAsyncUpload{ height: 25px !important;}.RadUpload { text-align: left; width: 117px;}
01.protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)02. {03. 04. e.Appointment.ToolTip = e.Appointment.Subject + ": " + e.Appointment.Description;05. 06. if (e.Appointment.Attributes["JobStatusID"] == COMMON.Enumerations.JobStatusEnum.BOOKING.ToString())07. {08. e.Appointment.AllowDelete = true;09. }10. else if (e.Appointment.Attributes["JobStatusID"] != COMMON.Enumerations.JobStatusEnum.COMPLETED.ToString() || e.Appointment.Attributes["JobStatusID"] != COMMON.Enumerations.JobStatusEnum.CANCELLEDBYADMINISTRATOR.ToString() || e.Appointment.Attributes["JobStatusID"] != COMMON.Enumerations.JobStatusEnum.CANCELLEDBYMOBILE.ToString() || e.Appointment.Attributes["JobStatusID"] != COMMON.Enumerations.JobStatusEnum.CLOSED.ToString())11. {12. string colorValue = COMMON.Enumerations.GetJobStatusColor((COMMON.Enumerations.JobStatusEnum)int.Parse(e.Appointment.Attributes["JobStatusID"]));13. e.Appointment.BackColor = Color.FromName(colorValue);14. e.Appointment.AllowDelete = false;15. e.Appointment.AllowEdit = false;16. //e.Appointment.Attributes.CssStyle.Add("rsAptDelete ", "display:none !important;");17. }18. else19. {20. string colorValue = COMMON.Enumerations.GetJobStatusColor((COMMON.Enumerations.JobStatusEnum)int.Parse(e.Appointment.Attributes["JobStatusID"]));21. e.Appointment.BackColor = Color.FromName(colorValue);22. e.Appointment.AllowDelete = false;23. e.Appointment.AllowEdit = true;24. //e.Appointment.Attributes.CssStyle.Add("rsAptDelete ", "display:none !important;");25. }26. }