or
<telerik:RadScheduler ID="RadScheduler1" runat="server" AllowDelete="True" AllowEdit="False" |
AllowInsert="True" DataEndField="End" DataKeyField="ID" DataSourceID="dsSchedules" |
DataStartField="Start" DataSubjectField="Subject" FirstDayOfWeek="Sunday" LastDayOfWeek="Saturday" |
OverflowBehavior="Expand" SelectedView="WeekView" Culture="Dutch (Netherlands)" |
DataRecurrenceField="strRecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" |
MinutesPerRow="15" Skin="Web20" StartInsertingInAdvancedForm="True" EnableCustomAttributeEditing="True" |
OnAppointmentCreated="RadScheduler1_AppointmentCreated" WeekColumnHeaderDateFormat="dddd, d" |
WeekHeaderDateFormat="D" WorkDayEndTime="21:00:00" |
WorkDayStartTime="07:30:00" ondatabound="RadScheduler1_DataBound" |
CustomAttributeNames="Enabled,Remarks"> |
<ResourceTypes> |
<telerik:ResourceType DataSourceID="dsWorkFlows" KeyField="Key" |
Name="process" TextField="Value" ForeignKeyField="workflowTypeID"/> |
</ResourceTypes> |
<AppointmentTemplate> |
<table style="width: 100%;"> |
<tr> |
<td class="ScheduledTaskHeader" style="width: 16px;"> |
<img runat="server" id="icon" alt="Icon" src='<%# GetImage(Eval("Start").ToString()) %>' style="float: left;" /> |
</td> |
<td class="ScheduledTaskHeader"> |
<%# Eval("Subject") %> |
</td> |
</tr> |
<tr> |
<td class="ScheduledTaskBody" style="width: 16px;"> |
<img alt="Icon" src="./Images/icons/process.png" style="float: left;" /> |
</td> |
<td class="ScheduledTaskBody"> |
<%# FormatText(Eval("process.Value").ToString())%> |
</td> |
</tr> |
</table> |
</AppointmentTemplate> |
</telerik:RadScheduler> |
<asp:ObjectDataSource ID="dsSchedulesNames" runat="server" DeleteMethod="DeleteGroupScheduledTasks" |
SelectMethod="ScheduleNames" TypeName="Otto.Process.AdminWeb.ScheduleList"> |
<DeleteParameters> |
<asp:Parameter Name="Name" Type="String" /> |
</DeleteParameters> |
</asp:ObjectDataSource> |
<asp:ObjectDataSource ID="dsSchedules" runat="server" DeleteMethod="DeleteSingleScheduledTask" |
InsertMethod="InsertAppointment" SelectMethod="AllData" TypeName="Otto.Process.AdminWeb.ScheduleList" |
UpdateMethod="UpdateAppointment"> |
<DeleteParameters> |
<asp:Parameter Name="ID" Type="String" /> |
</DeleteParameters> |
<UpdateParameters> |
<asp:Parameter Name="ID" Type="String" /> |
<asp:Parameter Name="Subject" Type="String" /> |
<asp:Parameter Name="Start" Type="DateTime" /> |
<asp:Parameter Name="End" Type="DateTime" /> |
<asp:Parameter Name="RecurrenceRule" Type="String" /> |
<asp:Parameter Name="RecurrenceParentID" Type="Object" /> |
<asp:Parameter Name="RecurrenceState" Type="Object" /> |
<asp:Parameter Name="workflowTypeID" Type="Int32" /> |
</UpdateParameters> |
<InsertParameters> |
<asp:Parameter Name="Subject" Type="String" /> |
<asp:Parameter Name="Start" Type="DateTime" /> |
<asp:Parameter Name="End" Type="DateTime" /> |
<asp:Parameter Name="strRecurrenceRule" Type="String" /> |
<asp:Parameter Name="RecurrenceParentID" Type="Object" /> |
<asp:Parameter Name="RecurrenceState" Type="Object" /> |
<asp:Parameter Name="workflowTypeID" Type="Int32" /> |
<asp:Parameter Name="Enabled" Type="Boolean" /> |
<asp:Parameter Name="Remarks" Type="String" /> |
</InsertParameters> |
</asp:ObjectDataSource> |
<asp:ObjectDataSource ID="dsWorkFlows" runat="server" |
SelectMethod="WorkFLowList" |
TypeName="Otto.Process.AdminWeb.WorkFlows"> |
</asp:ObjectDataSource> |
I know this topic has come up in a variety of ways, but is there a setting, or a hack to set the height of an appointment to "auto" where it will be big enough to display content specified for an appointment.
I know there is a RowHeight property that can be adjusted to show this, but that's still somewhat sloppy because there is no way of knowing the "biggest" appointment. When using an appointment template below, appointments with a short subject, will become quite large. And there may be a case where an appointment is created with a title that is longer than what is accounted for using the RowHeight property.
<AppointmentTemplate> |
<asp:HyperLink ID="hlSubject" runat="server" /><br /> |
<div><%#CDate(Eval("Start")).ToShortTimeString()%></div> |
</AppointmentTemplate> |
<telerik:RadDatePicker ID=
"radDatePicker"
MinDate=
"1/1/1000"
runat=
"server"
Skin=
"Windows7"
AutoPostBack=
"false"
EnableViewState=
"true"
>
<Calendar ID=
"calendarForDatePicker"
runat=
"server"
UseRowHeadersAsSelectors=
"False"
UseColumnHeadersAsSelectors=
"False"
ViewSelectorText=
"x"
AutoPostBack=
"false"
EnableViewState=
"true"
>
</Calendar>
<DateInput ID=
"dateInputForDatePicker"
runat=
"server"
DisplayDateFormat=
"M/d/yyyy"
DateFormat=
"M/d/yyyy"
AutoPostBack=
"false"
CssClass=
"datePickerBox"
EnableViewState=
"true"
>
</DateInput>
<DatePopupButton ImageUrl=
""
HoverImageUrl=
""
EnableViewState=
"true"
></DatePopupButton>
</telerik:RadDatePicker>
function
isDateInputFieldInError(control, message) {
var
errorState =
true
;
var
controlRef = $find(control);
var
dateInput = controlRef.get_dateInput();
if
(trimInput(dateInput.get_value()) ==
""
) {
dateInput._invalid =
true
;
addToolTipToControl(document.getElementById(control), message);
dateInput.get_styles().InvalidStyle[0] +=
"border: 1px solid #D18185 !important;"
;
}
else
{
dateInput._invalid =
false
;
errorState =
false
;
}
dateInput.updateCssClass();
return
errorState;
}
function
isInputFieldInError(control, message) {
var
errorState =
true
;
var
controlRef = $find(control);
if
(trimInput(controlRef.get_value()) ==
""
) {
controlRef._invalid =
true
;
addToolTipToControl(document.getElementById(control), message);
}
else
{
controlRef._invalid =
false
;
errorState =
false
;
}
controlRef.updateCssClass();
return
errorState;
}