This is a migrated thread and some comments may be shown as answers.

how to bind to object data source, timeline view

1 Answer 84 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jean-Marc
Top achievements
Rank 1
Jean-Marc asked on 21 May 2012, 10:05 AM
I need a timeline view just as your examples. categories type on rows, date on columns.
I want to bind their datasources to my businness object, I'm missing something cause nothing happens on the rows
I did this:

getAllTimeLineType and getAllAppointments return collections having IDCategory in common. I guess this is not what needed.

<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView"
            OverflowBehavior="Expand"            
            Localization-HeaderMultiDay="Work Week"
            OnNavigationComplete="RadScheduler1_NavigationComplete"
            OnAppointmentInsert="RadScheduler1_AppointmentInsert"
            OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
            OnAppointmentDelete="RadScheduler1_AppointmentDelete"
            DataKeyField="ID"
            DataSubjectField="Subject"
            DataStartField="StartDate"
            DataEndField="EndDate"
            DataRecurrenceField="RecurrenceRule"
            DataRecurrenceParentKeyField="RecurrenceParentId"
            DataReminderField="Reminder"
            >
 
 
            <ResourceTypes>
                <telerik:ResourceType AllowMultipleValues="true" KeyField="IDCategory" Name="IDCategory" TextField="IDCategory" ForeignKeyField="IDCategory" />
            </ResourceTypes>
            
 
            <AdvancedForm Modal="true" />
             
              <Localization HeaderMultiDay="Work Week" />
 
            <TimelineView UserSelectable="true"
                        GroupBy="IDCategory"
                        GroupingDirection="Vertical" />
            <MultiDayView UserSelectable="true" />
            <DayView UserSelectable="false" />
            <WeekView UserSelectable="false" />
            <MonthView UserSelectable="false" />
              <Reminders Enabled="false" />
        </telerik:RadScheduler>
 
 
 
 
  Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        Try
 
                Dim myBusinessResObj = New ADEPT.CScheduleResource(myConn)
                Dim resType1 As New ResourceType("IDCategory")               
                resType1.DataSource = myBusinessResObj.getAllTimelineType()
                resType1.KeyField = "IDCategory"
                resType1.TextField = "IDCategory"
                resType1.ForeignKeyField = "IDCategory"
                RadScheduler1.ResourceTypes.Add(resType1)
                RadScheduler1.GroupBy = "IDCategory"
 
 
 
                myBusinessObj = New ADEPT.CScheduler(myConn)
                RadScheduler1.DataSource = myBusinessObj.getAllAppointments
                myBusinessObj = Nothing
 
        Catch ex As Exception
             
        End Try
    End Sub

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 21 May 2012, 05:15 PM
Hi Jean-Marc,

Take a look at the following documentation: RadScheduler Data Binding.
If nothing from there helps,  you could send me a sample project, via support ticket, of your scenario so I would be able to troubleshoot the issues locally.

Regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Jean-Marc
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or