Hi,
I am using the below syntax to bind source to radschedule. Day View and Month View are binding correctly, but in Timeline view, the data source is binding to first date in the view.
If you look at attached screen shots, In month View, I've a record on June 25, and when I switch to Timeline View, the same record was set on first date of the view which is June 22 instead of June 25. Any idea, where I am doing wrong here?.
Any help is much appreciated.
<tel:RadScheduler runat="server" ID="rsSchedule" DataKeyField="ID" DataSubjectField="WnameSection"
DataDescriptionField="WnameSection" DataEndField="EndTime" DataStartField="StartTime" Localization-HeaderMultiDay="Work Week"
Skin="Office2007" OnNavigationComplete="rsSchedule_NavigationComplete" Height="900px"
FirstDayOfWeek="Monday" LastDayOfWeek="Saturday" SelectedView="MonthView" DayStartTime="8:00"
CustomAttributeNames="ID,FCSID,FCS,LoadNumber,MeetingPlace,MeetingTime,CountyCode,CountyName,DistrictCode,TotalTroutToStock,StartTime,EndTime,StockingDate,stocked, ShortDescription,FullDescription,DeadlineDate,scheduletype,StockingYear,StockingRequestID,ExpenseID,WnameSection,f1"
DayEndTime="17:00" AllowInsert="false" AllowEdit="false" AllowDelete="false"
OnAppointmentContextMenuItemClicking="rsSchedule_AppointmentContextMenuItemClicking" ColumnWidth="3px"
OnClientAppointmentContextMenu="appointmentContextMenu"
OnClientAppointmentContextMenuItemClicked="appointmentContextMenuClicked"
ontimeslotcreated="rsSchedule_TimeSlotCreated">
<AdvancedForm Modal="true" EnableTimeZonesEditing="true" />
<MonthView VisibleAppointmentsPerDay="5" AdaptiveRowHeight="false" />
<DayView ShowHoursColumn="true" UserSelectable="true" EnableExactTimeRendering="true"/>
<TimelineView UserSelectable="true" GroupingDirection="Horizontal" NumberOfSlots="6"/>
<WeekView ShowHoursColumn="true" UserSelectable="false" EnableExactTimeRendering="true" />
<AppointmentTemplate>
<asp:Panel ID="pnlAppointment" runat="server" Height="100%" Direction="LeftToRight"
BackColor='<%# PanelColor(Eval("FCSID")) %>'>
<div runat="server" id="att1" visible='<%# Appointment(Eval("scheduletype")) %>'>
<b dir="ltr" id="imageChangeType" runat="server">
<asp:Label ID="lblStatus" runat="server" BackColor='<%# StatusColor(Eval("stocked")) %>'
Height="10px" Width="20px"></asp:Label>
</b>
<br />
<b>
<asp:Label ID="Label8" runat="server" Text='<%# Eval("FCS") %>' Font-Bold="true"></asp:Label>
</b>
<br />
<b style="font-weight: bold">Load #: </b>
<asp:Label ID="lblLoad" runat="server" Text='<%# Eval("LoadNumber") %>'></asp:Label>
<br />
<b style="font-weight: bold">Cnty:</b>
<asp:Label ID="lblcounty" runat="server" Text='<%# Eval("CountyCode") %>'></asp:Label>
<br />
<b style="font-weight: bold">WCO:</b>
<asp:Label ID="lbldistricts" runat="server" Text='<%# Eval("DistrictCode") %>'></asp:Label>
<asp:Label ID="Label1" runat="server" Text='<%# String.Format("{0:t}" ,Convert.ToDateTime(Eval("StartTime"))) %>'></asp:Label>
<br />
<b style="font-weight: bold"># Fish:</b>
<asp:Label ID="lblTotoalFish" runat="server" Text='<%# String.Format("{0:N0}", Convert.ToInt32(Eval("f1")))%>'></asp:Label>
</div>
<div runat="server" id="divDeadlines" visible='<%# Deadline(Eval("scheduletype")) %>'>
<b>Deadline</b> <b>
<asp:Label ID="Label5" runat="server" Text='<%# Eval("ShortDescription") + "-" + "Stocking Year:" + Eval("StockingYear") %>'></asp:Label>
</b>
<br />
<asp:Label ID="Label2" runat="server" Text='<%# Eval("FullDescription") %>'></asp:Label>
</div>
</asp:Panel>
</AppointmentTemplate>
<AppointmentContextMenus>
<tel:RadSchedulerContextMenu ID="radschContextMenu" runat="server">
<Items>
<tel:RadMenuItem Text="e1" />
<tel:RadMenuItem Text="Post Stocking" />
<tel:RadMenuItem Text="Add Post Stocking" />
</Items>
</tel:RadSchedulerContextMenu>
</AppointmentContextMenus>
</tel:RadScheduler>
I am using the below syntax to bind source to radschedule. Day View and Month View are binding correctly, but in Timeline view, the data source is binding to first date in the view.
If you look at attached screen shots, In month View, I've a record on June 25, and when I switch to Timeline View, the same record was set on first date of the view which is June 22 instead of June 25. Any idea, where I am doing wrong here?.
Any help is much appreciated.
<tel:RadScheduler runat="server" ID="rsSchedule" DataKeyField="ID" DataSubjectField="WnameSection"
DataDescriptionField="WnameSection" DataEndField="EndTime" DataStartField="StartTime" Localization-HeaderMultiDay="Work Week"
Skin="Office2007" OnNavigationComplete="rsSchedule_NavigationComplete" Height="900px"
FirstDayOfWeek="Monday" LastDayOfWeek="Saturday" SelectedView="MonthView" DayStartTime="8:00"
CustomAttributeNames="ID,FCSID,FCS,LoadNumber,MeetingPlace,MeetingTime,CountyCode,CountyName,DistrictCode,TotalTroutToStock,StartTime,EndTime,StockingDate,stocked, ShortDescription,FullDescription,DeadlineDate,scheduletype,StockingYear,StockingRequestID,ExpenseID,WnameSection,f1"
DayEndTime="17:00" AllowInsert="false" AllowEdit="false" AllowDelete="false"
OnAppointmentContextMenuItemClicking="rsSchedule_AppointmentContextMenuItemClicking" ColumnWidth="3px"
OnClientAppointmentContextMenu="appointmentContextMenu"
OnClientAppointmentContextMenuItemClicked="appointmentContextMenuClicked"
ontimeslotcreated="rsSchedule_TimeSlotCreated">
<AdvancedForm Modal="true" EnableTimeZonesEditing="true" />
<MonthView VisibleAppointmentsPerDay="5" AdaptiveRowHeight="false" />
<DayView ShowHoursColumn="true" UserSelectable="true" EnableExactTimeRendering="true"/>
<TimelineView UserSelectable="true" GroupingDirection="Horizontal" NumberOfSlots="6"/>
<WeekView ShowHoursColumn="true" UserSelectable="false" EnableExactTimeRendering="true" />
<AppointmentTemplate>
<asp:Panel ID="pnlAppointment" runat="server" Height="100%" Direction="LeftToRight"
BackColor='<%# PanelColor(Eval("FCSID")) %>'>
<div runat="server" id="att1" visible='<%# Appointment(Eval("scheduletype")) %>'>
<b dir="ltr" id="imageChangeType" runat="server">
<asp:Label ID="lblStatus" runat="server" BackColor='<%# StatusColor(Eval("stocked")) %>'
Height="10px" Width="20px"></asp:Label>
</b>
<br />
<b>
<asp:Label ID="Label8" runat="server" Text='<%# Eval("FCS") %>' Font-Bold="true"></asp:Label>
</b>
<br />
<b style="font-weight: bold">Load #: </b>
<asp:Label ID="lblLoad" runat="server" Text='<%# Eval("LoadNumber") %>'></asp:Label>
<br />
<b style="font-weight: bold">Cnty:</b>
<asp:Label ID="lblcounty" runat="server" Text='<%# Eval("CountyCode") %>'></asp:Label>
<br />
<b style="font-weight: bold">WCO:</b>
<asp:Label ID="lbldistricts" runat="server" Text='<%# Eval("DistrictCode") %>'></asp:Label>
<asp:Label ID="Label1" runat="server" Text='<%# String.Format("{0:t}" ,Convert.ToDateTime(Eval("StartTime"))) %>'></asp:Label>
<br />
<b style="font-weight: bold"># Fish:</b>
<asp:Label ID="lblTotoalFish" runat="server" Text='<%# String.Format("{0:N0}", Convert.ToInt32(Eval("f1")))%>'></asp:Label>
</div>
<div runat="server" id="divDeadlines" visible='<%# Deadline(Eval("scheduletype")) %>'>
<b>Deadline</b> <b>
<asp:Label ID="Label5" runat="server" Text='<%# Eval("ShortDescription") + "-" + "Stocking Year:" + Eval("StockingYear") %>'></asp:Label>
</b>
<br />
<asp:Label ID="Label2" runat="server" Text='<%# Eval("FullDescription") %>'></asp:Label>
</div>
</asp:Panel>
</AppointmentTemplate>
<AppointmentContextMenus>
<tel:RadSchedulerContextMenu ID="radschContextMenu" runat="server">
<Items>
<tel:RadMenuItem Text="e1" />
<tel:RadMenuItem Text="Post Stocking" />
<tel:RadMenuItem Text="Add Post Stocking" />
</Items>
</tel:RadSchedulerContextMenu>
</AppointmentContextMenus>
</tel:RadScheduler>