Custom taskbar template not showing in resourceView

Hi,

Running into an issue with my custom taskbar templates not rendering on load in the resource view of the gantt chart when expandState is set to false. The templates load correctly when expandState is set to true, or when the expandState gets toggled.

Here's the code for my template. Any help

import React from 'react';


export const TaskbarTemplate: React.FC<any> = ({ taskData, ganttProperties }) => {
return (
<div className="e-gantt-child-taskbar-inner-div e-gantt-child-taskbar" style={{ width: '100%', height: '100%' }}>
<div className="e-gantt-child-progressbar-inner-div e-gantt-child-progressbar" style={{ width: `${ganttProperties.progressWidth}px`, height: '100%' }}>
<span
className="e-task-label"
style={{ }}>
{taskData.Name} {taskData.Type}
</span>
</div>
</div>
);
};

export const ParentTaskbarTemplate: React.FC<any> = ({ taskData, ganttProperties }) => {
return (
<div className="e-gantt-parent-taskbar-inner-div e-gantt-parent-taskbar" style={{ width: '100%', height: '100%' }}>
<div className="e-gantt-parent-progressbar-inner-div e-row-expand e-gantt-parent-progressbar" style={{ width: `${ganttProperties.progressWidth}px`, height: '100%' }}>
<span
className="e-task-label"
style={{ }}>
{taskData.Name}
</span>
</div>
</div>
);
};



10 Replies

SJ Sridharan Jayabalan Syncfusion Team January 22, 2024 03:16 PM UTC

Charles,

 

Based on your query, we recreated sample using resource view with expandState:'false' and taskbar templates and tried to replicate the issue but unable to reproduce it. So, kindly share more details asked below.

 

  1. Gantt Chart version?
  2. What is the Time zone are you using?
  3. Complete code details.
  4. If possible, replicate the issue with the provided sample below and revert us back.

 

Sample - Jnes5m (forked) - StackBlitz

 

 

 

Regards,

Sridharan



CH Chuck January 22, 2024 05:46 PM UTC

Hi,

I've successfully recreated my issue on a fork of the sample you provided. Simply adding enableMultiTaskbar={true} causes it. You'll notice the first row does not have the template applied until the expand is toggled.

https://stackblitz.com/edit/react-t1z2qo-a64j6w?file=index.js

help is appreciated! Thank you!



SJ Sridharan Jayabalan Syncfusion Team January 23, 2024 01:42 PM UTC

Chuck,

 

We have reviewed your query, and we are able to replicate the issue that you’ve reported that taskbar template is not working properly in Gantt Chart.

 

To address the problem, we have logged a bug request, and the fix will be provided in the patch release which is scheduled to be rolled out on February 14, 2024. You can track its status from the feedback link given below.

 

Feedback Link: Taskbar template not showing in resourceView in React | Feedback Portal (syncfusion.com)

 

Note: Kindly login into your account and view the feedback.

 

Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization

 

 

Regards,

Sridharan



SJ Sridharan Jayabalan Syncfusion Team February 14, 2024 12:47 PM UTC

Chuck,

 

Apologies for considering your reported issue as bug. Upon further validation, it seems to be a feature improvement for our Gantt Chart. 

The fix for the issue will be included in any of the upcoming release. We've already discussed various features for this release, and the decision on whether to priorities and implement this item will be based on things such as customer demand and vote results. As therefore, it may be included in future release.

 

You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through the below feedback link, 

Feedback link:  Taskbar template not showing in resourceView in React | Feedback Portal (syncfusion.com)

 

Regards,

Sridharan



CH Chuck February 14, 2024 01:06 PM UTC

How is this considered a feature improvement? Turning on a documented feature flag causes taskbars to NOT display until the row is toggled, after which the taskbar displays perfectly fine? This is absolutely a bug.

Is this re-categorization going to impact the delivery timeline?

Thanks


SJ Sridharan Jayabalan Syncfusion Team February 15, 2024 01:28 PM UTC

Chuck,

 

We'd like to explain how templates work with React and our Syncfusion Gantt Chart. Initially, Gantt Chart handles all the task organization and then it process the template elements in React.

 

Currently, our architecture processes the child elements and renders the parent elements. However, for multi-taskbar templates, we encounter difficulties accessing the child elements. This is because they're in a collapsed state and are rendered within a single row. As a result, we're unable to access the child elements, causing issues with taskbar templates when multi-taskbars are enabled.

 

To address this issue, we need to revamp the architecture of the Gantt Chart to accommodate this requirement. Therefore, instead of considering it a bug, we decided it as a feature enhancement that requires architectural changes.

 

The timeline for this feature remains uncertain as it depends on various factors, including customer demand, votes, and the frequency of inquiries for this particular feature. As of now, we are unable to provide a specific month or year for its implementation due to these varying factors influencing our development priorities and schedules. You can now track the current status of your request by below feedback.

  

Feedback link: Taskbar template not showing in resourceView in React | Feedback Portal (syncfusion.com)

 

 

Regards,

Sridharan



CH Chuck February 15, 2024 02:11 PM UTC

If it looks like a bug, acts like a bug... it's a bug. It doesn't matter if it's poorly architected or the result of your technical debt-- it's a documented feature that doesn't work as described. Toggling a single flag​ causes this behavior, quite literally rendering the entire chart useless.

We're building an entire product around this library and chose Syncfusion based on its support, track record, etc. To say I'm disappointed in this is an understatement. 

Please escalate this to your eng/qa manager.



SJ Sridharan Jayabalan Syncfusion Team February 16, 2024 02:18 PM UTC

Chuck,


Sorry for the inconvenience caused.


We understand the urgency and importance of resolving this issue for your application. Therefore, we have prioritized it and are committed to addressing your requirement. However, due to the architectural changes needed for the fix, it will take some time to implement. As a result, we have scheduled to include your fix in the first patch release after the Vol1 main release at the end of March 2024.


Thank you for your patience and understanding throughout this process. 



Regards,

Sridharan



CH Chuck February 16, 2024 02:47 PM UTC

Thank you very much. I appreciate it a lot, Sridharan.



SJ Sridharan Jayabalan Syncfusion Team March 27, 2024 05:00 PM UTC

Chuck,

 

We appreciate your patience.

 

The reported issue occurred because we are trying to fetch the templates after rows gets refreshed and now the fix for the issue “Taskbar template not showing in resourceView in React | Feedback Portal (syncfusion.com)” has been rolled out in our latest patch release (v25.1.37). So upgrade to our latest version to resolve the problem.

 

Sample Link - Jnes5m (forked) - StackBlitz

Release notes - Essential Studio for React Weekly Nuget Release Release Notes (syncfusion.com)

 

Please get back to us if you need any further assistance.

 

 

Regards,

Sridharan


Loader.
Up arrow icon