Check it out: Live Telerik UI for ASP.NET AJAX & all .NET Web Products Release Webinar on Tuesday 26 | 11 AM ET.
New to Telerik UI for ASP.NET AJAX? Download free 30-day trial
This demo demonstrates the Current Time Marker available in RadGantt. It is a vertical line indicating the current time relative to the project. You can control it by setting the ShowCurrentTimeMarker property, the default value of which is true. You can also set the CurrentTimeMarkerInterval property to specify the interval after which the time marker is updated in milliseconds.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.GanttExamples.DataBinding.ServerSide.XMLProvider.DefaultCS" %> <!DOCTYPE html> <html xmlns='http://www.w3.org/1999/xhtml'> <head runat="server"> <title>Telerik ASP.NET Example</title> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager runat="server" ID="RadScriptManager1" /> <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" /> <div class="demo-container no-bg"> <telerik:RadGantt RenderMode="Lightweight" ID="RadGantt1" runat="server" ReadOnly="true" Height="450px" AutoGenerateColumns="false" ShowFullTime="true" SelectedView="WeekView" ShowCurrentTimeMarker="true" CurrentTimeMarkerInterval="5000"> <Columns> <telerik:GanttBoundColumn DataField="ID" HeaderText="ID" Width="40px"></telerik:GanttBoundColumn> <telerik:GanttBoundColumn DataField="Title" HeaderText="Title"></telerik:GanttBoundColumn> </Columns> <DataBindings> <TasksDataBindings IdField="ID" TitleField="Subject" StartField="Start" EndField="End" OrderIdField="ID" ParentIdField="ParentID" SummaryField="Summary" PercentCompleteField="PercentComplete" /> <DependenciesDataBindings IdField="ID" PredecessorIdField="PredecessorID" SuccessorIdField="SuccessorID" TypeField="Type" /> </DataBindings> </telerik:RadGantt> </div> </form> </body> </html>