We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Gantt Resource View without start and end dates

Thread ID:

Created:

Updated:

Platform:

Replies:

142996 Feb 28,2019 03:28 AM UTC Mar 5,2019 09:06 AM UTC ASP.NET MVC 3
loading
Tags: Gantt
Amit Deshpande
Asked On February 28, 2019 03:28 AM UTC

Hi,

I'm trying to plot task on Gantt without any start or end date. It just have number of days each month. Our data just consists of number of days a resource will work on a project each month. A resource will be allocated to multiple projects in a month. Something like below

I would like to show each resource's availability during each month, for planning purposes, like below using the above data

Whats the best way to achieve this? we are looking into unscheduled tasks, but from the online demo it seems like it will plot the below each other not next to each other.

Any suggestions are highly appreciated.

Note for forum moderators:
Gantt is not available as a control to select while posting a new thread hence posted under Chart. Please move to appropriate section.

Thanks

Amit


Jonesherine Stephen [Syncfusion]
Replied On March 4, 2019 04:20 PM UTC

Hi Amit, 
Using Create client-side event we have calculated start date as per the duration and month date. Updated Gantt data using setModel. Using QueryTaskbarInfo client-side event we have customized the taskbar color. 
Please find the code example below: 
function queryTaskbarInfo(args) { 
    if (args.data.taskName == "PROJ_A") { 
        args.taskbarBackground = "#005094"; 
    } 
    else if (args.data.taskName == "PROJ_B") { 
        args.taskbarBackground = "#007600"; 
    } 
} 
function create(args) { 
    var modifiedData = [], 
        flatRecord = $.extend([], args.model.flatRecords); 
    for (var i = 0; i < flatRecord.length; i++) { 
        for (var j = 0; j < flatRecord[i].eResourceChildTasks.length; j++) { 
                                      //... 
            modifiedData.push(flatRecord[i].eResourceChildTasks[j].item) 
        } 
    } 
    this.setModel({ "dataSource": modifiedData }); 
} 
 
We have also prepared the sample based on this. Please find the sample from below location. 
 
Regards, 
Jone sherine P S

Amit Deshpande
Replied On March 5, 2019 02:22 AM UTC

Hi Jone,

That is just fantastic. Much appreciated.

Thanks a lot for the response and sample code. I will pass it on to our developers.

Regards,
Amit

Jonesherine Stephen [Syncfusion]
Replied On March 5, 2019 09:06 AM UTC

Hi Amit, 
Thanks for your update. 
Please let us know if you need further assistance on this. 
 
Regards, 
Jone sherine P S  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon