Posted 21 Jan 2013 Link to this post
<
telerik:RadScheduler
ID
=
"RadScheduler1"
runat
"server"
Skin
"Office2010Blue"
DisplayRecurrenceActionDialogOnMove
"True"
ShowNavigationPane
OnClientTimeSlotContextMenuItemClicked
"ClientTimeSlotContextMenuItemClicked"
OnClientAppointmentContextMenuItemClicked
"ClientAppointmentContextMenuItemClicked"
>
TimelineView
UserSelectable
"False"
/>
DayView
AppointmentContextMenus
<%--The appointment context menu interaction is handled on the client in this example--%>
telerik:RadSchedulerContextMenu
"SchedulerAppointmentContextMenu"
Items
telerik:RadMenuItem
Text
"Detils"
Value
"detail"
</
"MoreStatus"
"moreStatus"
TimeSlotContextMenus
"SchedulerTimeSlotContextMenu"
"New"
"createNew"
AppointmentTemplate
div
class
"rsAptSubject"
hr
style
"font-style: italic; background-color: Lime"
><%# Eval("FromTime")%></
> and c# code: RadScheduler1.DataSource = _meetingService.AllMeetings().ToList() RadScheduler1.DataStartField = "FromTime" RadScheduler1.DataSubjectField = "Council.CouncilName" RadScheduler1.DataEndField = "ToTime" RadScheduler1.DataKeyField = "MeetingId" RadScheduler1.DataDescriptionField = "FromTime" ' RadScheduler1.SelectedDate = DateTime.Now RadScheduler1.DataBind() but when run this page i get this error: DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'FromTime'. please help me for solve this problem. thanks Expert.
RadScheduler1.DataSource = _meetingService.AllMeetings().ToList()
RadScheduler1.DataStartField =
"FromTime"
RadScheduler1.DataSubjectField =
"Council.CouncilName"
RadScheduler1.DataEndField =
"ToTime"
RadScheduler1.DataKeyField =
"MeetingId"
RadScheduler1.DataDescriptionField =
' RadScheduler1.SelectedDate = DateTime.Now
RadScheduler1.DataBind()
Posted 24 Jan 2013 Link to this post
The code looks correct -just make sure that the code behind is in Page_Init (or in the Page_Load) method or your DataSouce is correctly build. I am attaching a sample web page where similar issue is working properly. Hope this will be helpful.