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

Timeline Formatting and Data Visibility

5 Answers 111 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jason Best
Top achievements
Rank 1
Jason Best asked on 23 Jun 2010, 11:21 PM
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> 

5 Answers, 1 is accepted

Sort by
0
Vuyiswa
Top achievements
Rank 2
answered on 24 Jun 2010, 10:53 AM
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.



0
Jason Best
Top achievements
Rank 1
answered on 24 Jun 2010, 05:30 PM
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.
0
Vuyiswa
Top achievements
Rank 2
answered on 24 Jun 2010, 05:36 PM
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
0
Peter
Telerik team
answered on 25 Jun 2010, 11:24 AM
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
0
Vuyiswa
Top achievements
Rank 2
answered on 25 Jun 2010, 12:22 PM
Thank you very much. i have another Question. i will post it as a new Post.

Thanks

Tags
Scheduler
Asked by
Jason Best
Top achievements
Rank 1
Answers by
Vuyiswa
Top achievements
Rank 2
Jason Best
Top achievements
Rank 1
Peter
Telerik team
Share this question
or