Timeline Formatting and Data Visibility

6 posts, 0 answers
  1. Jason Best
    Jason Best avatar
    5 posts
    Member since:
    Dec 2007

    Posted 23 Jun 2010 Link to this post

    I essentially copied the code from the Scheduler demo.  The only major differences are that I am utilizing an asp:ObjectDataSource to get data for the Timeline, and I did not set any of the DataRecurrence values.  I'm not certain of what the DataRecurrence values even do, but the ObjectDataSource appears to be working correctly to pull the data (at least, it pulls the GroupBy labels correctly).

    I have just one entry from a database being pulled for the actual timeline, for testing purposes.  I cannot see the entry within the timeline.  However, advancing the timeline forward shrinks the row height, making it appear that the data is pulled but is just not shown properly.  I have attached a screenshot of this behavior.

    Here is a sample of the Timeline control's code within my aspx file (I am not yet utilizing this control in the back-end):

    <telerik:RadScheduler runat="server" ShowViewTabs="false" OverflowBehavior="Expand" ColumnWidth="250px" TimelineView-NumberOfSlots="30" ID="timeline" GroupBy="Type" GroupingDirection="Vertical" DataSourceID="timelineDataSource" SelectedView="TimelineView" DataKeyField="RegulatoryResultsId" DataStartField="CreatedOn" DataEndField="ReceiveOn" DataSubjectField="Description"
            <ResourceTypes> 
                <telerik:ResourceType  KeyField="TypeId" Name="Type" TextField="TypeName" ForeignKeyField="TypeValue" 
                            DataSourceID="timelineSectionSource" /> 
            </ResourceTypes> 
    </telerik:RadScheduler> 

  2. Vuyiswa Maseko
    Vuyiswa Maseko avatar
    187 posts
    Member since:
    Jan 2010

    Posted 24 Jun 2010 Link to this post

    hi Jason

    i have a problem , how did you get your

    (at least, it pulls the GroupBy labels correctly).

    mine does not Show anything , i posted my problem on this post




    to answer the problem you are having , what you can do you can set ColumnWidth property to a bigger size.

    Looking forward for reply.



  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jason Best
    Jason Best avatar
    5 posts
    Member since:
    Dec 2007

    Posted 24 Jun 2010 Link to this post

    From what I understand, the GroupBy isn't actually one of the values you pull from your database -- it matches the "Name=" field within the ResourceType.  The query used for the ResourceType's DataSourceID is used to pull the titles of the different groups.  TextField is the label that should be displayed for an individual group (in my case the "TypeName" is used).

    In the original query, where I'm pulling all of my data (timelineDataSource), I pull a value called TypeValue.  This is what I'm actually grouping by, and is the title used within the ResourceType's ForeignKeyField attribute.

    I solved my problem.  It had to do with the time of day.  I just created a date within my database, and it automatically gave the time of 12:00:00 AM.  Even if I have the DayStartTime value at 00:00:00 and the DayEndValue at 23:59:59, this time will not register.  I just do an extra check for if the query pulls 12:00:00 and change the time to 12:00:01.  Not ideal, but it works.
  5. Vuyiswa Maseko
    Vuyiswa Maseko avatar
    187 posts
    Member since:
    Jan 2010

    Posted 24 Jun 2010 Link to this post

    Good Evening Jason

    I am glad you have resolved your Problem. The Field i am grouping by is coming from the Database and later today i was able solve my problem. i have added a Group by Explicitly on the markup for each view and it added the Field that i was grouping by and working fine now.

    Kind Regards

    Vuyiswa Maseko
  6. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 25 Jun 2010 Link to this post

    Hello Vuyiswa,

    If you need grouping for each view, you can set the GroupBy property for RadScheduler, instead of for each view individually:

    <telerik:RadScheduler runat="server" ID="RadScheduler1" GroupBy="..." />

    Best wishes,
    Peter
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Vuyiswa Maseko
    Vuyiswa Maseko avatar
    187 posts
    Member since:
    Jan 2010

    Posted 25 Jun 2010 Link to this post

    Thank you very much. i have another Question. i will post it as a new Post.

    Thanks

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017