I am trying to set up a simple scheduler that gets info from a SQL data source and simply displays it. I assume I create just a "Appointment Template" and display the data. I don't want the user to edit or add to this calendar directly - i just want them to see the appointments and then I will create links in the template that do various things....
I am getting the following exception:
"Event" is certainly part of my DataSource however:
My Scheduler:
Shouldn't this alone simply place that data into the template and that's it?
I am getting the following exception:
DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'event'.
"Event" is certainly part of my DataSource however:
| <asp:SqlDataSource ID="sqlds_Tasks" runat="server" |
| ConnectionString="<%$ ConnectionStrings:Master_ConnectionString %>" SelectCommand="SELECT a.last_name + ', '+ a.first_name as CustomerName, |
| a.record, |
| b.event, |
| b.event_date, |
| DateAdd(hour, 1, b.event_date) as EndDate, |
| b.importance, |
| b.app_notes, |
| b.hide |
| FROM records a |
| INNER JOIN notes b |
| ON b.record = a.record |
| WHERE a.d_id = @d_id AND b.event_date IS NOT NULL"> |
| <SelectParameters> |
| <asp:SessionParameter Name="d_id" SessionField="D_ID" /> |
| </SelectParameters> |
| </asp:SqlDataSource> |
My Scheduler:
| <telerik:RadScheduler ID="scheduler_Events" runat="server" |
| DataEndField="EndDate" DataKeyField="record" DataSourceID="sqlds_Tasks" |
| DataStartField="event_date" ReadOnly="True" DataSubjectField="event"> |
| <AppointmentTemplate> |
| <b><%#Eval("event")%> - <%#Eval("importance")%></b><br /> |
| Record: <%#Eval("record")%> - <%#Eval("CustomerName")%><br /> |
| <%#Eval("app_notes")%> |
| </AppointmentTemplate> |
| </telerik:RadScheduler> |
Shouldn't this alone simply place that data into the template and that's it?