I have looked at the examples and I have not seen an example where I can bind a scheduler in the code behind. For some very odd reason people like to bind using a query in the html.
In any case I am new to the scheduler and want to bind in the code behind. When I try the following code nothing shows on the grid and there should be:
Any thoughts?
Jason
In any case I am new to the scheduler and want to bind in the code behind. When I try the following code nothing shows on the grid and there should be:
| <telerik:RadScheduler runat="server" ID="RadScheduler1" |
| Width="750px" Skin="Default" EnableEmbeddedSkins="True" |
| SelectedDate="2008-02-02" DayStartTime="08:00:00" DayEndTime="18:00:00" TimeZoneOffset="03:00:00" |
| DataKeyField="AppointmentID" DataSubjectField="Subject" |
| DataStartField="StartDate" DataEndField="EndDate" DataRecurrenceField="RecurrenceRule" |
| DataRecurrenceParentKeyField="RecurrenceParentID"> |
| <AppointmentTemplate> |
| <%# Eval("Subject") %> |
| </AppointmentTemplate> |
| </telerik:radscheduler> |
| Private Sub BindScheduler() |
| Dim dt As DataTable |
| dt = '--- get the data table from the SP ---' |
| If dt.Rows.Count > 0 Then |
| Me.RadScheduler1.DataSource = dt |
| Me.RadScheduler1.DataBind() |
| End If |
| End Sub |
Any thoughts?
Jason