Gantt - Web Service

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

This example demonstrates how to populate RadGantt from web service. You need to configure the WebServeSettings, by specifying the Path to the existing web service :

<telerik:RadGantt runat="server" ID="RadGantt" Skin="Default" Height="450px">
	<WebServiceSettings Path="GanttService.asmx" />
</telerik:RadComboBox>
  • DefaultCS.aspx
  • GanttService.cs
<%@ Page Language="C#"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<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" runat="server" ID="RadGantt" Height="450px" AutoGenerateColumns="false" SelectedView="MonthView">
            <Columns>
                <telerik:GanttBoundColumn DataField="Title" DataType="String" Width="120px"></telerik:GanttBoundColumn>
                <telerik:GanttBoundColumn DataField="Start" DataType="DateTime" DataFormatString="dd/MM/yy" Width="50px"></telerik:GanttBoundColumn>
                <telerik:GanttBoundColumn DataField="End" DataType="DateTime" DataFormatString="dd/MM/yy" Width="50px"></telerik:GanttBoundColumn>
            </Columns>
            <WebServiceSettings Path="GanttService.asmx" />
        </telerik:RadGantt>
    </div>

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

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?