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"
                Localization-HeaderMultiDay="Work Week"
                    <telerik:ResourceType AllowMultipleValues="true" KeyField="IDCategory" Name="IDCategory" TextField="IDCategory" ForeignKeyField="IDCategory" />
                <AdvancedForm Modal="true" />
                  <Localization HeaderMultiDay="Work Week" />
                <TimelineView UserSelectable="true"
                            GroupingDirection="Vertical" />
                <MultiDayView UserSelectable="true" />
                <DayView UserSelectable="false" />
                <WeekView UserSelectable="false" />
                <MonthView UserSelectable="false" />
                  <Reminders Enabled="false" />
      Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
                    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.GroupBy = "IDCategory"
                    myBusinessObj = New ADEPT.CScheduler(myConn)
                    RadScheduler1.DataSource = myBusinessObj.getAllAppointments
                    myBusinessObj = Nothing
            Catch ex As Exception
            End Try
        End Sub
  2. Ivana
    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.

    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