FAQ: Weeks starting on Monday (or Saturday) in our WPF Gantt Charts

With GanttChartDataGrid, ScheduleChartDataGrid and other timeline-based components from DlhSoft Gantt Chart Light Library you, as a developer, can easily configure custom working (and therefore also nonworking) time, including by setting the limits of the week, e.g. WorkingWeekStart = Monday, and WorkingWeekFinish = Saturday, for example (besides also being able to set up WorkingDayStart/Finish time of days, and any specific nonworking intervals such as holidays or breaks).

Still, the component will also present (and gray out) the remaining nonworking days if you just let the default values for VisibleWeekStart/Finish properties (Sunday-Saturday).

Here we need to provide an important heads-up, though: you cannot control with those general settings what is the actual day for week starting, i.e. where the UI should to display vertical week separators simply because not always you would need to display weeks in the component, although working time can always be based on weeks.

Instead, if you want to have vertical separator lines between Sundays and Mondays (or between Fridays and Saturdays) rather than between Saturdays and Sundays, you will need to use another ScaleType value – “WeeksStartingMonday” on the Scale item that was previously set to type “Weeks” in the Scales collection of the component (or “WeeksStartingSaturday” if that’s more appropriate for your application users.)

Posted in Development Components | Tagged , , , , , , , , | Leave a comment

New WPF themes for Gantt Chart Light Library components

We have just updated the WPF Demos app for Gantt Chart Light Library including these changes:

  • Three new themes have been introduced, offering new design settings and colors: Light-blue, Yellow-green, and Green-blue.
  • Existing themes have also been updated to get the new contemporary design settings, defined as resource elements in Common.xaml using “2” suffix.
  • However, two themes, Generic-bright and Generic-blue, have been preserved in their original form too, just adding “-2006” suffix on their names.

For your reference, note that the full source code for the Demos app is available on GitHub.

Posted in Development Components | Tagged , , , | Leave a comment

Project Manager app promotion

Special offer – 3 days remaining:
Get a free perpetual license for DlhSoft Project Manager app from the Windows Store!

Gantt Chart and PERT-enabled. Resource leveling algorithm and much more inside.
100% discount!


Posted in Applications, Promotions | Tagged , , , , | Leave a comment

Undo and Redo in GanttChartView control from DlhSoft Gantt Chart Hyper Library for JavaScript, using an open source UndoStack component written by DlhSoft in C# and having JavaScript and TypeScript definitions generated automatically using Bridge.net

Hello and Happy New Year! This year we’re heading to continue improving our existing products with interesting updates, in parallel with turning some new ideas into great new features and/or new products.

As a start, we chose to develop a small new JavaScript/TypeScript sample app for DlhSoft Gantt Chart Hyper Library to show developers how they can add Undo and Redo commands in their JavaScript-targeting apps and automatically updating Gantt Chart items and the user interface of the component when such commands are executed.

However, we found it would be more useful for everybody if we extracted the Undo stack recording and execution into a separate small library that we could offer as open source for everyone to be able to update and extend for their own purposes, as needed, even when not using DlhSoft components. Eventually, here is the Undo stack repository on GitHub!

Internally, we used Bridge.net the first time to write the internal logic code of the UndoStack component in C#, and have it immediately available in JavaScript too (for our original purpose). While this process involved working around some issues that Bridge has with dates, times, and time spans and we eventually decided to use integral types instead, the output of using that package is really nice: we could then easily generate two NuGet packages, one for .NET and one for JavaScript, having the logic actually in a single source code base using a single programming language (C#)! This is the first time we didn’t need to duplicate business logic originally written in one language (C#) to another (JavaScript/TypeScript).

Finally, here is the Undo-Redo sample app for GanttChartView JavaScript component, in full source code (available in TypeScript on top of UndoStack definitions, or in generated JavaScript). Enjoy!

Posted in Development Components | Tagged , , , , , , , , , , , | 2 Comments

Support for calling more operations on GanttChartView component for UWP

We’ve just released a new Windows 10 UWP-based build for DlhSoft Gantt Chart Modern Library (WinMD). The package includes GanttChartView and ScheduleChartView components that, as before, reuse the JavaScript components from Gantt Chart Hyper Library internally, though an API available from all environments supported in WinRT development (.NET managed, C++, JavaScript), but this time we’ve opened up more integration between the JavaScript and outside worlds.

Specifically, at initialization time you can now set up JavaScript functions that define extended endpoints that the internal components can be accessed within, and then your application code can easily execute operations exposed by those endpoints.

GanttChartView.OperationsCode = @"
    function levelResources(dateExpression) { control.levelResources(false, eval(dateExpression)); }
    function optimizeWork() { control.optimizeWork(); }";
private void LevelResourcesButton_Click(object sender, RoutedEventArgs e)
    // Level resources starting at 10th day of current month.
    GanttChartView.ExecuteOperation("levelResources", string.Format("new Date({0}, {1}-1, {2})", year, month, 10));
private void OptimizeWorkButton_Click(object sender, RoutedEventArgs e)

The full updated WinRT Gantt Chart view sample source code is available on GitHub.

Posted in Development Components | Tagged , , , , | Leave a comment

Aligning GanttChartDataGrid cell content, even when exporting or printing

With the recently released Gantt Chart Light Library build (revision you can now align grid cells and have the exported image or printed document follow your setting. To have output text right aligned, for example, just ensure you use DataGridTemplateColumn with ContentControl element inside its CellTemplate, having HorizontalAlignment property set to Right:

<DataGridTemplateColumn Header="Description">
            <ContentControl Content="{Binding Tag.Description}" Padding="4"
Posted in Development Components | Tagged , , , , , | Leave a comment

PHP integration sample for our JavaScript based Gantt Chart

We’ve added a new sample app showing the basics on how one can use the JavaScript GanttChartView component from Gantt Chart Hyper Library in PHP. See its full source code on GitHub.

Basically, we’ve simulated having some timeline objects (task items) read from a database on the server side and generated client side code to load and display them with an interactive Gantt Chart. Then we are recording client changes into a hidden form field and upon a post back operation we simulate propagating updated values to the database, while the user interface items get reinitialized with the changes applied as well.

Posted in Development Components | Tagged , | Leave a comment