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

XML Provider

This demo illustrates how to bind RadGantt to a XML file using the built-in XmlGanttProvider. The only thing you need to do is to create a new instance of the provider and pass the path to the XML file to its constructor. Once this is done the control will automatically extract the information from the XML file and update its content when the user adds/removes tasks or changes them.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
<%@ 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" Height="450px" SelectedView="MonthView" ReadOnly="true" runat="server">
        </telerik:RadGantt>
    </div>

    </form>
</body>
</html>

Support & Learning Resources

Find Assistance