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

Show current time in timeline view

3 Answers 125 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Indranik
Top achievements
Rank 1
Indranik asked on 11 Dec 2008, 02:46 PM
I need to show a vertical line representing the current time vertically across the scheduler in timeline view.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 Dec 2008, 03:48 PM
Hello Indranik,

You can achieve this if you define a dummy resource type with one resource with no text. Then use the GroupBy property to group by Date and the DummyResouce that you have defined. Also set the other properties that are available for the Timeline view. Here is an example:

<TimelineView GroupBy="Date, DummyResource" GroupingDirection="Vertical" NumberOfSlots="8" SlotDuration="01:00" ColumnHeaderDateFormat="hh:mm" />   
 



Sincerely yours,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Indranik
Top achievements
Rank 1
answered on 12 Dec 2008, 05:04 AM
But the challenge is that I already have resourcetypes assigned to it. So giving a dummy resource would be out of scope. Now my requirement is I need along wth everything else, a thin line on the scheduler that would denote the current time to the user .
I will give the code for the radscheduler:

<

telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndTime"

 

 

ShowViewTabs="false" Height="300px"

 

 

DataKeyField="ID" DataSourceID="ObjectDataSource1" SelectedView="TimeLineView"

 

 

GroupingDirection="Vertical" DataStartField="StartTime"

 

 

DataSubjectField="Subject" Width="943px"

 

 

GroupBy="Name" Skin="Web20" TimelineView-HeaderDateFormat="dddd MMMM dd yyyy"

 

 

ValidationGroup="RadScheduler1">

 

 

<TimelineView TimeLabelSpan="1" NumberOfSlots="8" SlotDuration="01:00" ColumnHeaderDateFormat="hh:mm" StartTime="08:00"/>

 

 

<ResourceTypes>

 

 

<telerik:ResourceType KeyField="ID" Name="Name" TextField="Name" ForeignKeyField="ResourceID" AllowMultipleValues="false"

 

 

DataSourceID="ObjectDataSource2"/>

 

 

</ResourceTypes>

 

 

</telerik:RadScheduler>

 

<

asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="AppointmentData"

 

 

DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}"

 

 

SelectMethod="GetAllAppointments" TypeName="XmlDataProvider" UpdateMethod="Update">

 

 

</asp:ObjectDataSource>

 

 

<asp:ObjectDataSource ID="ObjectDataSource2" runat="server" DataObjectTypeName="Resources" OldValuesParameterFormatString="original_{0}"

 

 

SelectMethod="GetAllResources" TypeName="XmlDataProvider"></asp:ObjectDataSource>

 


0
Peter
Telerik team
answered on 12 Dec 2008, 12:07 PM
Hello Indranik,

I am not sure what exactly you need. Could you please open a support ticket and send us a screenshot of the desired outcome?

Regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Indranik
Top achievements
Rank 1
Answers by
Peter
Telerik team
Indranik
Top achievements
Rank 1
Share this question
or