how to bind to object data source, timeline view

2 posts, 0 answers
  1. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 21 May 2012 Link to this post

    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
  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 21 May 2012 Link to this post

    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.
Back to Top