Hi,
I have Radscheduler which displays next day's calendar after 11 PM. I fixed the time range displayed in timeline view of calendar by setting start date on initial page load. However when I click "Today" , it again shows next day in timeline view.
Is there any event fired on clicking"Today" so that I can set scheduler's selected date, or am I missing a setting?
c# Code
//PK 02/18/2013 Set selected date of scheduler, so it does not show next day's timelineview at 11:00 PM
if (!IsPostBack)
rsTicketsSchedule.SelectedDate = DateTime.Now.Date;
ASPX:
<telerik:RadScheduler ID="RadScheduler1" runat="server" Skin="Office2007"
Width="100%" RowHeaderWidth="52" OverflowBehavior="Auto" ShowFooter="false" DataSourceID="SchedulerDataSource"
DataKeyField="AppointmentID" DataStartField="Start" DataEndField="End" DataSubjectField="Subject"
CustomAttributeNames="Due, Priority" RowHeight="37px" OnAppointmentCommand="RadScheduler1_AppointmentCommand"
OnAppointmentInsert="RadScheduler1_AppointmentInsert" SelectedView="TimelineView"
>
<TimelineView GroupBy="Calendar" GroupingDirection="Vertical" SlotDuration="00:30:00"
ColumnHeaderDateFormat="hh:mm"></TimelineView>
<AdvancedForm Modal="true"></AdvancedForm>
<AppointmentTemplate>
<%# Eval("Subject") %>
<asp:Button runat="server" ID="UnscheduleAppointment" CssClass="simpleButton" CommandName="Unschedule"
Text=" " ToolTip="Unschedule this appointment"></asp:Button>
</AppointmentTemplate>
<TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
<AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
</telerik:RadScheduler>
http://demos.telerik.com/aspnet-ajax/scheduler/examples/timelineview/defaultcs.aspx
Thanks,
Prava
I have Radscheduler which displays next day's calendar after 11 PM. I fixed the time range displayed in timeline view of calendar by setting start date on initial page load. However when I click "Today" , it again shows next day in timeline view.
Is there any event fired on clicking"Today" so that I can set scheduler's selected date, or am I missing a setting?
c# Code
//PK 02/18/2013 Set selected date of scheduler, so it does not show next day's timelineview at 11:00 PM
if (!IsPostBack)
rsTicketsSchedule.SelectedDate = DateTime.Now.Date;
ASPX:
<telerik:RadScheduler ID="RadScheduler1" runat="server" Skin="Office2007"
Width="100%" RowHeaderWidth="52" OverflowBehavior="Auto" ShowFooter="false" DataSourceID="SchedulerDataSource"
DataKeyField="AppointmentID" DataStartField="Start" DataEndField="End" DataSubjectField="Subject"
CustomAttributeNames="Due, Priority" RowHeight="37px" OnAppointmentCommand="RadScheduler1_AppointmentCommand"
OnAppointmentInsert="RadScheduler1_AppointmentInsert" SelectedView="TimelineView"
>
<TimelineView GroupBy="Calendar" GroupingDirection="Vertical" SlotDuration="00:30:00"
ColumnHeaderDateFormat="hh:mm"></TimelineView>
<AdvancedForm Modal="true"></AdvancedForm>
<AppointmentTemplate>
<%# Eval("Subject") %>
<asp:Button runat="server" ID="UnscheduleAppointment" CssClass="simpleButton" CommandName="Unschedule"
Text=" " ToolTip="Unschedule this appointment"></asp:Button>
</AppointmentTemplate>
<TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
<AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
</telerik:RadScheduler>
http://demos.telerik.com/aspnet-ajax/scheduler/examples/timelineview/defaultcs.aspx
Thanks,
Prava