New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Contains event definitions for the RadGantt control.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[RequiredScript(typeof(jQueryPlugins), 1)]
[RequiredScript(typeof(Html5Gantt), 2)]
[RequiredScript(typeof(MaterialRipple))]
[ClientScriptResource("Telerik.Web.UI.RadGantt", "Telerik.Web.UI.Gantt.RadGanttScripts.js", LoadOrder = 3)]
[EmbeddedSkin("Gantt", typeof(RadGantt))]
[EmbeddedSkin("Gantt", "Default", typeof(RadGantt))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadGantt))]
[RequiredCss("Telerik.Web.UI.Skins.Common.MaterialRipple.css", RenderMode.Lightweight, typeof(RadButton))]
[TelerikToolboxCategory("Calendar, Scheduler and Gantt")]
[ToolboxBitmap(typeof(RadGantt), "Toolbox.Icons.Gantt.png")]
public class RadGantt : RadDataBoundControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, IFeatureGroup, INamingContainer, IGantt, ICallbackEventHandler, IPostBackEventHandler

Inheritance: objectControlWebControlBaseDataBoundControlDataBoundControlRadDataBoundControlRadGantt...

Implements: IAttributeAccessorICallbackEventHandlerIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIFeatureGroupIGanttINamingContainerIParserAccessorIPostBackDataHandlerIPostBackEventHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members DataBoundControl.OnCreatingModelDataSource(CreatingModelDataSourceEventArgs)DataBoundControl.CreateDataSourceSelectArguments()DataBoundControl.GetData()DataBoundControl.GetDataSource()DataBoundControl.MarkAsDataBound()DataBoundControl.OnDataSourceViewChanged(object, EventArgs)DataBoundControl.OnLoad(EventArgs)DataBoundControl.OnPagePreLoad(object, EventArgs)DataBoundControl.PerformDataBinding(IEnumerable)DataBoundControl.ValidateDataSource(object)DataBoundControl.LoadViewState(object)DataBoundControl.SaveViewState()DataBoundControl.TrackViewState()DataBoundControl.DataMemberDataBoundControl.IsUsingModelBindersDataBoundControl.ItemTypeDataBoundControl.SelectMethodDataBoundControl.DataSourceIDDataBoundControl.DataSourceObjectDataBoundControl.SelectArgumentsDataBoundControl.CreatingModelDataSourceDataBoundControl.CallingDataMethodsBaseDataBoundControl.ConfirmInitState()BaseDataBoundControl.DataBind()BaseDataBoundControl.OnDataBound(EventArgs)BaseDataBoundControl.OnInit(EventArgs)BaseDataBoundControl.DataSourceBaseDataBoundControl.InitializedBaseDataBoundControl.IsBoundUsingDataSourceIDBaseDataBoundControl.IsDataBindingAutomaticBaseDataBoundControl.SupportsDisabledAttributeBaseDataBoundControl.DataBoundWebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.MergeStyle(Style)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.IsEnabledWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.ToolTipControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadGantt()

Properties

Gets or sets a value indicating whether the columns can be resized.

C#
[ClientControlProperty]
[ClientPropertyName("allowColumnResize")]
public bool AllowColumnResize { get; set; }

Gets or sets a value indicating whether the user is able to delete a dependency.

C#
[ClientControlProperty]
[ClientPropertyName("allowDependencyDelete")]
public bool AllowDependencyDelete { get; set; }

Gets or sets a value indicating whether the user is able to insert a dependency.

C#
[ClientControlProperty]
[ClientPropertyName("allowDependencyInsert")]
public bool AllowDependencyInsert { get; set; }

Gets or sets a value indicating whether the user is able to drag PercetComplete of a task.

C#
[ClientControlProperty]
[ClientPropertyName("allowPercentCompleteDrag")]
public bool AllowPercentCompleteDrag { get; set; }

If set to true the default pop-up editor of the Gantt will render the plannedStart and plannedEnd editors for the edited task..

C#
[ClientControlProperty]
[ClientPropertyName("allowPlannedTasks")]
public bool AllowPlannedTasks { get; set; }

Gets or sets a value indicating whether sorting is enabled for the tree list part.

C#
public bool AllowSorting { get; set; }

Gets or sets a value indicating whether the user is able to delete a task.

C#
[ClientControlProperty]
[ClientPropertyName("allowTaskDelete")]
public bool AllowTaskDelete { get; set; }

Gets or sets a value indicating whether the user is able to insert a task.

C#
[ClientControlProperty]
[ClientPropertyName("allowTaskInsert")]
public bool AllowTaskInsert { get; set; }

Gets or sets a value indicating whether the user is able to move a task.

C#
[ClientControlProperty]
[ClientPropertyName("allowTaskMove")]
public bool AllowTaskMove { get; set; }

Gets or sets a value indicating whether the user is able to reorder a task.

C#
[ClientControlProperty]
[ClientPropertyName("allowTaskReorder")]
public bool AllowTaskReorder { get; set; }

Gets or sets a value indicating whether the user is able to resize a task.

C#
[ClientControlProperty]
[ClientPropertyName("allowTaskResize")]
public bool AllowTaskResize { get; set; }

Gets or sets a value indicating whether the user is able to update a task.

C#
[ClientControlProperty]
[ClientPropertyName("allowTaskUpdate")]
public bool AllowTaskUpdate { get; set; }
C#
[Browsable(false)]
public virtual AssignmentCollection Assignments { get; }
C#
protected virtual AssignmentsBinder AssignmentsBinder { get; }

Gets or sets data source for resource assignments.

C#
[Browsable(false)]
public object AssignmentsDataSource { get; set; }

Gets or sets the DataSource used to bind resource assignments

C#
public virtual string AssignmentsDataSourceID { get; set; }
C#
public DataSourceView AssignmentsView { get; }

Implements: IGantt.AssignmentsView

Gets or sets a value indicating whether bound columns are automatically created for each field in the data source. RadGantt will auto generate columns for the following fields: ID, Title, Start, End and PercentageComplete

C#
public virtual bool AutoGenerateColumns { get; set; }

Implements: IGantt.AutoGenerateColumns

Gets or sets the HTML template of the RadGantt tasks.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
[ClientControlProperty]
[ClientPropertyName("clientTemplate")]
[Browsable(false)]
public string ClientTemplate { get; set; }

Gets the available columns.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual ColumnCollection Columns { get; }

The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()

C#
protected override string CssClassFormatString { get; }

Overrides: RadDataBoundControl.CssClassFormatString

Example:
C#
protected override string CssClassFormatString
{
       get
       {
           return "RadDock RadDock_{0} rdWTitle rdWFooter";
       }
}

Gets or sets the selected culture. Localization strings will be loaded based on this value.

C#
public CultureInfo Culture { get; set; }
Property Value:

The culture.

Gets or sets a value indicating the number of milliseconds after which the current time marker is updated.

C#
[ClientControlProperty]
[ClientPropertyName("currentTimeMarkerInterval")]
public int CurrentTimeMarkerInterval { get; set; }

Gets the additional task fields.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual CustomFieldCollection CustomTaskFields { get; }
C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual GanttDataBindings DataBindings { get; }

Implements: IGantt.DataBindings

Gets the Day view settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public DayViewSettings DayView { get; }
Property Value:

The day view.

C#
protected IColumnFactory DefaultColumnsFactory { get; }
C#
[Browsable(false)]
public virtual DependencyCollection Dependencies { get; }

Implements: IGantt.Dependencies

C#
protected virtual DependenciesBinder DependenciesBinder { get; }

Gets or sets data source for dependencies.

C#
[Browsable(false)]
public object DependenciesDataSource { get; set; }

Gets or sets the DataSource used to bind dependencies

C#
public virtual string DependenciesDataSourceID { get; set; }
C#
public DataSourceView DependenciesView { get; }

Implements: IGantt.DependenciesView

Gets or sets a value indicating whether a delete confirmation dialog should be displayed when the user deletes a task or a dependency.

C#
[ClientControlProperty]
[ClientPropertyName("displayDeleteConfirmation")]
public bool DisplayDeleteConfirmation { get; set; }
Property Value:

true if the confirmation dialog should be displayed; false otherwise. The default value is true.

C#
protected virtual bool DoExplicitDataBind { get; }

Gets or sets a value indicating whether the export to PDF functionality is enabled.

C#
[ClientControlProperty]
[ClientPropertyName("enablePdfExport")]
public bool EnablePdfExport { get; set; }

Gets or sets a value indicating whether the resources functionality is enabled.

C#
[ClientControlProperty]
[ClientPropertyName("enableResources")]
public bool EnableResources { get; set; }
C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual FilterEntryCollection Entries { get; }

Gets the Export settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public GanttExportSettings ExportSettings { get; }
C#
protected bool HasCustomProvider { get; }
C#
[ClientControlProperty]
[ClientPropertyName("height")]
public override Unit Height { get; set; }

Overrides: RadDataBoundControl.Height

Used to customize the Gantt keyboard navigation functionality

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public GanttKeyboardNavigationSettings KeyboardNavigationSettings { get; }

Gets or sets the RadGantt list width in pixels or percents.

C#
[ClientControlProperty]
[ClientPropertyName("listWidth")]
public virtual Unit ListWidth { get; set; }

Gets the localization.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public GanttStrings Localization { get; }
Property Value:

The localization.

Gets or sets a value indicating where RadGantt will look for its .resx localization files.

C#
public string LocalizationPath { get; set; }
Property Value:

The localization path.

Gets the Month view settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public MonthViewSettings MonthView { get; }
Property Value:

The month view.

Gets or sets the OnClientColumnResized.

C#
[ClientControlEvent]
[ClientPropertyName("columnResized")]
public string OnClientColumnResized { get; set; }
Property Value:

The OnClientColumnResized.

Gets or sets the OnClientDataBound.

C#
[ClientControlEvent]
[ClientPropertyName("dataBound")]
public string OnClientDataBound { get; set; }
Property Value:

The OnClientDataBound.

The event will be raised when a new task or a new dependency is about to be added.

C#
[ClientControlEvent]
[ClientPropertyName("inserting")]
public string OnClientInserting { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

Gets or sets the OnClientKendoWidgetInitializing event handler.

C#
[ClientControlEvent]
[ClientPropertyName("kendoWidgetInitializing")]
public string OnClientKendoWidgetInitializing { get; set; }
Property Value:

The OnClientKendoWidgetInitializing.

Fired when the Gantt control is loaded on the page.

C#
[ClientControlEvent]
[ClientPropertyName("load")]
public string OnClientLoad { get; set; }

Gets or sets a value indicating the client-side event handler that is called when the gantt is about to execute a navigation command such as view change.

C#
[ClientControlEvent]
[ClientPropertyName("navigationCommand")]
public string OnClientNavigationCommand { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

If specified, the OnClientNavigationCommand client-side event handler is called when the gantt is about to execute a navigation command.

Two parameters are passed to the handler:

  • sender, the scheduler client object;
  • eventArgs with two properties:
    • get_view(), the view name that is about to be selected.
    • set_cancel(), used to cancel the event.

This event can be cancelled.

Gets or sets the OnClientPdfExporting.

C#
[ClientControlEvent]
[ClientPropertyName("pdfExporting")]
public string OnClientPdfExporting { get; set; }
Property Value:

The OnClientPdfExporting.

The event will be raised when a task or a dependency is about to be removed.

C#
[ClientControlEvent]
[ClientPropertyName("removing")]
public string OnClientRemoving { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

Gets or sets a value indicating the client-side event handler that is called when a response from the WebService is received. If there is an error, the argument methods will return undefined. The Error handler is fired after this event in case of a failed request.

C#
[ClientControlEvent]
[ClientPropertyName("requestEnd")]
public string OnClientRequestEnd { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

Gets or sets a value indicating the client-side event handler that is called when an error response from the WebService is received. This event is fired after RequestEnd event.

C#
[ClientControlEvent]
[ClientPropertyName("requestFailed")]
public string OnClientRequestFailed { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

Gets or sets a value indicating the client-side event handler that is called when the gantt is about to make a request to the WebService.

C#
[ClientControlEvent]
[ClientPropertyName("requestStart")]
public string OnClientRequestStart { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

The event will be raised when the user starts task edit upon double click on a cell.

C#
[ClientControlEvent]
[ClientPropertyName("taskEditing")]
public string OnClientTaskEditing { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

Gets or sets a value indicating the client-side event handler that is called when an task has been moved.

C#
[ClientControlEvent]
[ClientPropertyName("taskMoveEnd")]
public string OnClientTaskMoveEnd { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

If specified, the OnClientTaskMoveEnd client-side event handler is called when an task has been moved.

Two parameters are passed to the handler:

  • sender, the gantt client object;
  • eventArgs with three properties:
    • get_task(), the instance of the task.
    • get_start(), the new start time of the task.
    • set_cancel(), set to true to cancel the move operation.

This event can be cancelled.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientTaskMoveEndHandler(sender, eventArgs)<br />
{<br />
       var task = eventArgs.get_task();<br />
       var newStartTime = eventArgs.get_start();<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadGantt ID="RadGantt1"<br />
runat="server"<br />
    <strong>OnClientTaskMoveEnd="onClientTaskMoveEndHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadGantt&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when an task is about to be moved.

C#
[ClientControlEvent]
[ClientPropertyName("taskMoveStart")]
public string OnClientTaskMoveStart { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

If specified, the OnClientTaskMoveStart client-side event handler is called when an task is about to be moved. Two parameters are passed to the handler:

  • sender, the gantt client object;
  • eventArgs with two properties:
    • get_task(), the instance of the task.
    • set_cancel(), set to true to cancel the move operation.

This event can be cancelled.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientTaskMoveStartHandler(sender, eventArgs)<br />
{<br />
       var task = eventArgs.get_task();<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadGantt ID="RadGantt1"<br />
runat="server"<br />
    <strong>OnClientTaskMoveStart="onClientTaskMoveStartHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadGantt&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when an task is being moved.

C#
[ClientControlEvent]
[ClientPropertyName("taskMoving")]
public string OnClientTaskMoving { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

If specified, the OnClientTaskMoving client-side event handler is called when an task is being moved. Two parameters are passed to the handler:

  • sender, the gantt client object;
  • eventArgs with three properties:
    • get_task(), the instance of the task.
    • get_start(), the start date and time of the task.
    • set_cancel(), set to true to cancel the move operation.

This event can be cancelled.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function OnClientTaskMoving(sender, eventArgs)<br />
{<br />
       var task = eventArgs.get_task();<br />
       var start = eventArgs.get_start();<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadGantt ID="RadGantt1"<br />
runat="server"<br />
    <strong>OnClientTaskMoving="onClientTaskMovingHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadGantt&gt;</p>

Gets or sets the OnClientTaskResizeEnd.

C#
[ClientControlEvent]
[ClientPropertyName("taskResizeEnd")]
public string OnClientTaskResizeEnd { get; set; }
Property Value:

The OnClientTaskResizeEnd.

Gets or sets the OnClientTaskResizeStart.

C#
[ClientControlEvent]
[ClientPropertyName("taskResizeStart")]
public string OnClientTaskResizeStart { get; set; }
Property Value:

The OnClientTaskResizeStart.

Gets or sets the OnClientTaskResizing.

C#
[ClientControlEvent]
[ClientPropertyName("taskResizing")]
public string OnClientTaskResizing { get; set; }
Property Value:

The OnClientTaskResizing.

The event will be raised when a task field is updated upon user interaction.

C#
[ClientControlEvent]
[ClientPropertyName("taskSaving")]
public string OnClientTaskSaving { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

The event will be raised when the user selects a task in the Gantt.

C#
[ClientControlEvent]
[ClientPropertyName("taskSelectionChanged")]
public string OnClientTaskSelectionChanged { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

The event will be raised when a task field is updated upon user interaction.

C#
[ClientControlEvent]
[ClientPropertyName("taskUpdateCancel")]
public string OnClientTaskUpdateCancel { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

The event will be raised upon Toolbar PlannedTasks Switch click. As a result, the planned tasks will be either hidden or shown in the Gantt Timeline view. The event is preventable.

C#
[ClientControlEvent]
[ClientPropertyName("togglePlannedTasks")]
public string OnClientTogglePlannedTasks { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

Gets or sets the provider instance to be used by Gantt. Use this property with providers that are created at runtime. For ASP.NET providers defined in web.config use the ProviderName property.

C#
[Browsable(false)]
public GanttProviderBase Provider { get; set; }
Property Value:

The provider instance to be used by Gantt.

Gets or sets the name of the current tasks provider used by Gantt. The provider must be defined in the Gantt section of web.config.

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string ProviderName { get; set; }
Property Value:

The name of the current tasks provider used by Gantt as defined in web.config.

Gets or sets the end range of the currently selected view.

C#
[ClientControlProperty]
[ClientPropertyName("rangeEnd")]
public DateTime? RangeEnd { get; set; }

Gets or sets the start range of the currently selected view.

C#
[ClientControlProperty]
[ClientPropertyName("rangeStart")]
public DateTime? RangeStart { get; set; }

Gets or sets a value indicating whether RadGantt is in read-only mode.

C#
[ClientControlProperty]
[ClientPropertyName("readOnly")]
public virtual bool ReadOnly { get; set; }
Property Value:

true if RadGantt should be read-only; false otherwise. The default value is false.

By default the user is able to select, insert, edit and delete tasks. Use the ReadOnly to disable the editing and selection capabilities of RadGantt.

C#
protected virtual bool RequiresDataBinding { get; set; }

Gets the resolved render mode.

C#
public override RenderMode ResolvedRenderMode { get; }
Property Value:

The resolved render mode.

Overrides: RadDataBoundControl.ResolvedRenderMode

C#
[Browsable(false)]
public virtual ResourceCollection Resources { get; }
C#
protected virtual ResourcesBinder ResourcesBinder { get; }

Gets or sets data source for resources.

C#
[Browsable(false)]
public object ResourcesDataSource { get; set; }

Gets or sets the DataSource used to bind resources

C#
public virtual string ResourcesDataSourceID { get; set; }
C#
public DataSourceView ResourcesView { get; }

Implements: IGantt.ResourcesView

Gets or sets the height of RadGantt rows.

C#
[ClientControlProperty]
[ClientPropertyName("rowHeight")]
public Unit RowHeight { get; set; }
Property Value:

The height of a RadGantt row

Gets or sets the date to which the timeline of the currently selected view is scrolled.

C#
[ClientControlProperty]
[ClientPropertyName("selectedDate")]
public DateTime? SelectedDate { get; set; }

Gets or sets the current view type.

C#
public GanttViewType SelectedView { get; set; }
Property Value:

One of the GanttViewType values. The default is DayView.

Implements: IGantt.SelectedView

C#
protected JavaScriptSerializer Serializer { get; }

Gets or sets a value indicating whether the current time marker is visible.

C#
[ClientControlProperty]
[ClientPropertyName("showCurrentTimeMarker")]
public bool ShowCurrentTimeMarker { get; set; }

Gets or sets a value indicating whether to display the complete day or the range between 8:00 AM and 5:00 PM.

C#
[ClientControlProperty]
public bool ShowFullTime { get; set; }
Property Value:

true if showing the complete day; otherwise, false.

Gets or sets a value indicating whether to display all days of the week or the range between WorkWeekStart and WorkWeekEnd.

C#
[ClientControlProperty]
public bool ShowFullWeek { get; set; }
Property Value:

true if showing all week days; otherwise, false.

If set to true, the Gantt Timeline will render both the planned and the actual execution of tasks. In order to display properly, the Planned vs. Actual view would need the plannedStart and plannedEnd date fields for tasks to be set.

C#
[ClientPropertyName("showPlannedTasks")]
public bool ShowPlannedTasks { get; set; }

Gets or sets a value indicating whether to display a tooltip with summary of the task upon hovering.

C#
[Obsolete("This property is obsolete in favor of the TasksTooltipSettings.Visible property.")]
public bool ShowTooltip { get; set; }

Gets or sets a value that determines whether the tasks will snap to the nearest grid cell in the timeline.

C#
[ClientControlProperty]
[ClientPropertyName("snapToGrid")]
public bool SnapToGrid { get; set; }
C#
protected override bool SupportsRenderingMode { get; }

Overrides: RadDataBoundControl.SupportsRenderingMode

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

C#
[Browsable(false)]
public virtual TaskCollection Tasks { get; }

Implements: IGantt.Tasks

Default Tooltip options for this the Gantt Tasks.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
[ClientPropertyName("tooltip")]
[Browsable(false)]
public TasksTooltip TasksTooltipSettings { get; }
C#
public DataSourceView TasksView { get; }

Implements: IGantt.TasksView

Default Tooltip options for this the Gantt Tasks.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
[ClientPropertyName("toolbar")]
[Browsable(false)]
public GanttToolbar Toolbar { get; }
C#
protected bool UsingWebServiceBinding { get; }
C#
protected IEnumerable<GanttBoundColumn> VisibleColumns { get; }

Gets the web service settings to be used for binding this instance of RadGantt.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public WebServiceSettings WebServiceSettings { get; }
Property Value:

The web service settings.

Gets the WeekView settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public WeekViewSettings WeekView { get; }
Property Value:

The WeekView.

Gets or sets the RadGantt width in pixels or percents.

C#
[ClientControlProperty]
[ClientPropertyName("width")]
public override Unit Width { get; set; }

Overrides: RadDataBoundControl.Width

Gets or sets the last day of the work week.

C#
[ClientControlProperty]
public DayOfWeek WorkWeekEnd { get; set; }

Gets or sets the first day of the work week.

C#
[ClientControlProperty]
public DayOfWeek WorkWeekStart { get; set; }

Gets the Year view settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public YearViewSettings YearView { get; }
Property Value:

The year view.

Methods

C#
protected virtual void BindAssignments(IEnumerable<IAssignment> assignments)
Parameters:assignmentsIEnumerable<IAssignment>
C#
protected virtual void BindDependencies(IEnumerable<IDependency> dependencies)
Parameters:dependenciesIEnumerable<IDependency>
C#
protected virtual void BindResources(IEnumerable<IResource> resources)
Parameters:resourcesIEnumerable<IResource>
C#
protected virtual void BindTasks(IEnumerable<ITask> tasks)
Parameters:tasksIEnumerable<ITask>
C#
protected virtual void CreateBinder(DataBoundControl binder)
Parameters:binderDataBoundControl
C#
protected override void CreateChildControls()

Overrides: Control.CreateChildControls()

C#
protected virtual void CreateColumns()
C#
protected virtual void CreateViews()
C#
protected virtual void DescribeAssignments(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor
C#
protected virtual void DescribeColumns(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor
C#
protected override void DescribeComponent(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadDataBoundControl.DescribeComponent(IScriptDescriptor)

C#
protected virtual void DescribeCustomFields(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor
C#
protected virtual void DescribeDependencies(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor
C#
protected virtual void DescribeLocalization(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor
C#
protected virtual void DescribePostBack(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor
C#
protected virtual void DescribeResources(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor
C#
protected virtual void DescribeTasks(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor
C#
protected virtual void DescribeViews(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor
C#
protected override void EnsureDataBound()

Overrides: BaseDataBoundControl.EnsureDataBound()

C#
protected virtual void FireCommand(ICallbackCommandContext cmd)
Parameters:cmdICallbackCommandContext
C#
protected virtual void FirePostbackCommand(IPostbackCommandContext cmd)
Parameters:cmdIPostbackCommandContext

Returns Depth First Search flattened list of tasks.

C#
public IList<ITask> GetAllTasks()
Returns:

IList<ITask>

Depth First Search flattened list of tasks.

Implements: IGantt.GetAllTasks()

C#
public string GetCallbackResult()
Returns:

string

Implements: ICallbackEventHandler.GetCallbackResult()

C#
protected override IEnumerable<ScriptReference> GetScriptReferences()
Returns:

IEnumerable<ScriptReference>

Overrides: RadDataBoundControl.GetScriptReferences()

Populates the control from the specified MSProject XML file.

C#
public void ImportXml(string xmlFileName)
Parameters:xmlFileNamestring

The name of the MSProject XML file.

Executed when post data is loaded from the request

C#
protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Parameters:postDataKeystringpostCollectionNameValueCollectionReturns:

bool

Overrides: RadDataBoundControl.LoadPostData(string, NameValueCollection)

C#
protected virtual void LoadProvider()
C#
protected virtual void OnAssignmentDelete(AssignmentEventArgs e)
Parameters:eAssignmentEventArgs
C#
protected virtual void OnAssignmentInsert(AssignmentEventArgs e)
Parameters:eAssignmentEventArgs
C#
protected virtual void OnAssignmentUpdate(AssignmentEventArgs e)
Parameters:eAssignmentEventArgs
C#
protected virtual void OnColumnCreated(ColumnCreatedEventArgs e)
Parameters:eColumnCreatedEventArgs
C#
protected virtual void OnColumnCreating(ColumnCreatingEventArgs e)
Parameters:eColumnCreatingEventArgs
C#
protected override void OnDataPropertyChanged()

Overrides: DataBoundControl.OnDataPropertyChanged()

C#
protected virtual void OnDependencyDelete(DependencyEventArgs e)
Parameters:eDependencyEventArgs
C#
protected virtual void OnDependencyInsert(DependencyEventArgs e)
Parameters:eDependencyEventArgs
C#
protected virtual void OnNavigationCommand(NavigationCommandEventArgs e)
Parameters:eNavigationCommandEventArgs
C#
protected override void OnPreRender(EventArgs e)
Parameters:eEventArgs

Overrides: RadDataBoundControl.OnPreRender(EventArgs)

C#
protected virtual void OnTaskDelete(TaskEventArgs e)
Parameters:eTaskEventArgs
C#
protected virtual void OnTaskInsert(TaskEventArgs e)
Parameters:eTaskEventArgs
C#
protected virtual void OnTaskUpdate(TaskEventArgs e)
Parameters:eTaskEventArgs
C#
protected override void PerformSelect()

Overrides: DataBoundControl.PerformSelect()

C#
public void RaiseCallbackEvent(string eventArgument)
Parameters:eventArgumentstring

Implements: ICallbackEventHandler.RaiseCallbackEvent(string)

C#
public void RaisePostBackEvent(string eventArgument)
Parameters:eventArgumentstring
C#
protected override void Render(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: RadDataBoundControl.Render(HtmlTextWriter)

C#
protected virtual void UpdateBinder(DataBoundControl binder, string dataSourceID)
Parameters:binderDataBoundControldataSourceIDstring

Events

Occurs when an assignment's collection is about to be deleted from the database through the provider.

C#
public event AssignmentDeleteEventHandler AssignmentDelete

Occurs when an assignment's collection is about to be inserted in the database through the provider.

C#
public event AssignmentInsertEventHandler AssignmentInsert

Occurs when an assignment's collection is about to be updated through the provider.

C#
public event AssignmentUpdateEventHandler AssignmentUpdate

Occurs after a column was created. You can handle the event to grab an instance of the newly created column.

C#
public event ColumnCreatedEventHandler ColumnCreated

Occurs before a column is created. You can handle the event to replace or modify the instance of the column that should be created and added into the collection of column in the corresponding

C#
public event ColumnCreatingEventHandler ColumnCreating

Occurs when a dependency's collection is about to be deleted from the database through the provider.

C#
public event DependencyDeleteEventHandler DependencyDelete

Occurs when a dependency's collection is about to be inserted in the database through the provider.

C#
public event DependencyInsertEventHandler DependencyInsert

Occurs when the RadGantt executes a navigation command.

C#
public event NavigationCommandEventHandler NavigationCommand

Occurs when a task's collection is about to be deleted from the database through the provider.

C#
public event TaskDeleteEventHandler TaskDelete

Occurs when a task's collection is about to be inserted in the database through the provider.

C#
public event TaskInsertEventHandler TaskInsert

Occurs when a task's collection is about to be updated through the provider.

C#
public event TaskUpdateEventHandler TaskUpdate
In this article
DefinitionConstructorsRadGantt()PropertiesAllowColumnResizeAllowDependencyDeleteAllowDependencyInsertAllowPercentCompleteDragAllowPlannedTasksAllowSortingAllowTaskDeleteAllowTaskInsertAllowTaskMoveAllowTaskReorderAllowTaskResizeAllowTaskUpdateAssignmentsAssignmentsBinderAssignmentsDataSourceAssignmentsDataSourceIDAssignmentsViewAutoGenerateColumnsClientTemplateColumnsCssClassFormatStringCultureCurrentTimeMarkerIntervalCustomTaskFieldsDataBindingsDayViewDefaultColumnsFactoryDependenciesDependenciesBinderDependenciesDataSourceDependenciesDataSourceIDDependenciesViewDisplayDeleteConfirmationDoExplicitDataBindEnablePdfExportEnableResourcesEntriesExportSettingsHasCustomProviderHeightKeyboardNavigationSettingsListWidthLocalizationLocalizationPathMonthViewOnClientColumnResizedOnClientDataBoundOnClientInsertingOnClientKendoWidgetInitializingOnClientLoadOnClientNavigationCommandOnClientPdfExportingOnClientRemovingOnClientRequestEndOnClientRequestFailedOnClientRequestStartOnClientTaskEditingOnClientTaskMoveEndOnClientTaskMoveStartOnClientTaskMovingOnClientTaskResizeEndOnClientTaskResizeStartOnClientTaskResizingOnClientTaskSavingOnClientTaskSelectionChangedOnClientTaskUpdateCancelOnClientTogglePlannedTasksProviderProviderNameRangeEndRangeStartReadOnlyRequiresDataBindingResolvedRenderModeResourcesResourcesBinderResourcesDataSourceResourcesDataSourceIDResourcesViewRowHeightSelectedDateSelectedViewSerializerShowCurrentTimeMarkerShowFullTimeShowFullWeekShowPlannedTasksShowTooltipSnapToGridSupportsRenderingModeTagKeyTasksTasksTooltipSettingsTasksViewToolbarUsingWebServiceBindingVisibleColumnsWebServiceSettingsWeekViewWidthWorkWeekEndWorkWeekStartYearViewMethodsBindAssignments(IEnumerable<IAssignment>)BindDependencies(IEnumerable<IDependency>)BindResources(IEnumerable<IResource>)BindTasks(IEnumerable<ITask>)CreateBinder(DataBoundControl)CreateChildControls()CreateColumns()CreateViews()DescribeAssignments(IScriptDescriptor)DescribeColumns(IScriptDescriptor)DescribeComponent(IScriptDescriptor)DescribeCustomFields(IScriptDescriptor)DescribeDependencies(IScriptDescriptor)DescribeLocalization(IScriptDescriptor)DescribePostBack(IScriptDescriptor)DescribeResources(IScriptDescriptor)DescribeTasks(IScriptDescriptor)DescribeViews(IScriptDescriptor)EnsureDataBound()FireCommand(ICallbackCommandContext)FirePostbackCommand(IPostbackCommandContext)GetAllTasks()GetCallbackResult()GetScriptReferences()ImportXml(string)LoadPostData(string, NameValueCollection)LoadProvider()OnAssignmentDelete(AssignmentEventArgs)OnAssignmentInsert(AssignmentEventArgs)OnAssignmentUpdate(AssignmentEventArgs)OnColumnCreated(ColumnCreatedEventArgs)OnColumnCreating(ColumnCreatingEventArgs)OnDataPropertyChanged()OnDependencyDelete(DependencyEventArgs)OnDependencyInsert(DependencyEventArgs)OnNavigationCommand(NavigationCommandEventArgs)OnPreRender(EventArgs)OnTaskDelete(TaskEventArgs)OnTaskInsert(TaskEventArgs)OnTaskUpdate(TaskEventArgs)PerformSelect()RaiseCallbackEvent(string)RaisePostBackEvent(string)Render(HtmlTextWriter)UpdateBinder(DataBoundControl, string)EventsAssignmentDeleteAssignmentInsertAssignmentUpdateColumnCreatedColumnCreatingDependencyDeleteDependencyInsertNavigationCommandTaskDeleteTaskInsertTaskUpdate
Not finding the help you need?
Contact Support