Quantcast
Channel: chart – DlhSoft Team's Blog
Viewing all articles
Browse latest Browse all 41

Gantt Chart components for ASP .NET: soon

$
0
0
Update:
Gantt Chart Web Library for ASP .NET 4+ is now ready!

As we have recently released Gantt Chart Hyper Library for HTML5, we are glad to announce that we will also release another set of components (that internally use HTML5 features too) for ASP .NET 4+.

In other words, developers who leverage ASP .NET and Ajax features to develop Web applications (targeting modern browsers that support HTML5 inline SVG features) will be able to use GanttChartView and ScheduleChartView native Web controls directly from their ASP .NET pages!

A live (online) sample application is available here: http://DlhSoft.com/GCWL/Demo – please consider it as an early preview, tough.

The ASP .NET source code of the demo is very simple – at least for basic presentation of the data. Note that any changes occuring on the client side are automatically submitted to the Items collection of the server control on post backs. Data can be easily persisted using a SQL Server or another type of database.

HTML code:

<form id=”form1″ runat=”server”>
<asp:ScriptManager ID=”ScriptManager” runat=”server”/>
<asp:UpdatePanel ID=”MainPanel” runat=”server”>
<ContentTemplate>
[…]

<pdgcc:GanttChartView ID=”GanttChartView” runat=”server”
Height=”480px”/>
</ContentTemplate>
</asp:UpdatePanel>
</form>

C# code:

protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
return;
  var items = new List<GanttChartItem>
{
new GanttChartItem { Content = “Task 1″, IsExpanded = false },
new GanttChartItem { Content = “Task 1.1″, Indentation = 1,
Start = new DateTime(year, month, 2, 8, 0, 0),
Finish = new DateTime(year, month, 4, 16, 0, 0),
[…] },
[…]
};
items[3].Predecessors = new List<PredecessorItem> {
new PredecessorItem { Item = items[0],
DependencyType = DependencyType.StartStart } };
[…]
GanttChartView.Items = items;
}

What do you think?



Viewing all articles
Browse latest Browse all 41

Trending Articles