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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Gantt Task - don't show progress

Thread ID:

Created:

Updated:

Platform:

Replies:

120664 Oct 1,2015 11:28 AM UTC Oct 7,2015 12:18 PM UTC ASP.NET Web Forms 3
loading
Tags: Gantt
ShareValue
Asked On October 1, 2015 11:28 AM UTC

Is it possible for some specific tasks to don't show the task progress ? just render the bar, with no progress, or % text ?
Thanks.

Dinesh Kumar Nagarathinam [Syncfusion]
Replied On October 2, 2015 07:17 AM UTC

 
Hi ShareValue,
 
Yes, it is possible to render a taskbar without progress bar for specific task by using “QueryTaskbarInfo” client side event.

Code Snippet:
 

<ej:Gantt ID="GanttControlDefault" runat="server" 

            TreeColumnIndex="1" 

            QueryTaskbarInfo="queryTaskbarInfo">          

</ej:Gantt>

<script type="text/javascript">


             function queryTaskbarInfo(args) {                


                 if (args.data.taskName == "Child Task 1") {


                     var specificTaskbar = args.taskbar,


                         progressbar = $(specificTaskbar).find(".progressbar");


                     progressbar.css({ "display": "none" });


                 }


             }

</script>


 
We have prepared a sample and please find it from the below location.

Sample: http://www.syncfusion.com/downloads/support/forum/120664/ze/Gantt2135321223
 
Regards,
Dinesh kumar.N

ShareValue
Replied On October 6, 2015 04:29 PM UTC

In my particular case, I have:

- Task A
         - Task A1
         - Task A2

I want to be able to ignore "Task A1" and "Task A2" execution progress (because is 0) and set "Task A" execution progress to a specific valu, ex: 100%. 
In this case the gantt is setting "Task A" % progress = 0, and it's not the behaviour that I want.

Is it possible to overcome this ?

Dinesh Kumar Nagarathinam [Syncfusion]
Replied On October 7, 2015 12:18 PM UTC

Hi, 
 

It is not possible to render parent progress bar without the progress in its child taskbars and this is the behavior in Gantt. The ProgressBar in parent taskbar
depends upon its child taskbar progress. If you don’t want to display the child taskbar’s progress, you can set its style from display to none as suggested in
our previous update.
 

Regards,

Dinesh Kumar N.


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.

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

;