March 29, 2024, 07:08:43 AM

See more Support incidents in our old archived forum.

Author Topic: FGWorkingHoursBar problem  (Read 3833 times)

Francesco Fantoni

  • Customers
  • Newbie
  • *
  • Posts: 25
FGWorkingHoursBar problem
« on: February 17, 2020, 06:59:18 PM »
Hi,
I'm facing with a problem regarding FGWorkingHoursBar : when you zoom in the NonWorkingHoursBar start to shift or cutoff.
I have attacched a gif image where you can see that. Blue bar are Working hours and Violet bar ara NonWorking Hours; all items are with WotkingTimeScheduler.24x5. At the beginning violet bars overlap the gray background on saturdays and sundays; when you start to zoom in all is ok and violet bars are rendered correctly but suddenly they start to shift or move.

(It's a Gif Image Click to view the animation)

I have set this fxgantt properties:
    this.fxgantt.ApplyBarWidthOptimization = false;
    this.fxgantt.SyncRowBackgrounds = true;
    this.fxgantt.UseChartVirtualization = true;

and Gantt version 8.0.
Thanks in advance
Francesco

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 182
Re: FGWorkingHoursBar problem
« Reply #1 on: February 18, 2020, 04:06:48 PM »
Francesco,

We have sent the reference sample from our support mail to reproduce the issue as we couldn’t. Please get it and help us reproduce the issue.

Thanks,
Raja.

Francesco Fantoni

  • Customers
  • Newbie
  • *
  • Posts: 25
Re: FGWorkingHoursBar problem
« Reply #2 on: March 03, 2020, 06:21:55 PM »
Hi,
I discovered that the issue occours when the task starts in the previous page and end in the current page.
If the task starts and ends inside the current page all is ok.
I have no time to prepare a sample right now, I'm sorry, maybe next days.
Thanks
Francesco

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 182
Re: FGWorkingHoursBar problem
« Reply #3 on: March 13, 2020, 03:04:13 PM »
Francesco,

We can't able to reproduce the issue, looking forward to hear more from you.

Thanks,
Raja.

Francesco Fantoni

  • Customers
  • Newbie
  • *
  • Posts: 25
Re: FGWorkingHoursBar problem
« Reply #4 on: May 17, 2020, 05:31:10 PM »
Hi,
finally I can give a small sample to investigate this issue.
please get this project : https://we.tl/t-hx5m9qX14r

Note:
1. the problem occurs if you zoom to "day" level.
2. as I said before the problem occurs if you go to the next page (so the Task rectangle starts from the previous page)
3. I used a WorkTimeSchedule.Schedule8X5 but the problem occurs with custom schedule provider too.



Here all is ok.


Here you can see something goes wrong.

Another question:

Is there a way to remove Weekend gray bands?
 
Thanks
Regards
Francesco
« Last Edit: May 17, 2020, 05:34:50 PM by Francesco Fantoni »

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 182
Re: FGWorkingHoursBar problem
« Reply #5 on: May 18, 2020, 11:57:14 AM »
Hi Francesco,

#1 - Thanks for the reference sample, we are looking on it. We will keep you updated.

#2 - Do you want to remove the grey color applied on all Saturdays and Sundays?


Thanks,
Raja

Francesco Fantoni

  • Customers
  • Newbie
  • *
  • Posts: 25
Re: FGWorkingHoursBar problem
« Reply #6 on: May 18, 2020, 01:04:44 PM »
Hi,
#1 thanks for your support.

#2. Yes for all Saturdays and Sundays

Thanks

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 182
Re: FGWorkingHoursBar problem
« Reply #7 on: May 21, 2020, 05:14:13 AM »
Hi Francesco,

#1 - You have to turn off the "ApplyBarWidthOptimization" value to make it render properly. Let us know if you have any trouble on this.

#2 - Do you need 8X5 schedule to the Gantt? We noticed the resource level schedules in your app. So, the tasks will take it's corresponding schedule. Are you comfortable to change the Gantt's schedule as 24X7(null)?


Thanks,
Raja

Francesco Fantoni

  • Customers
  • Newbie
  • *
  • Posts: 25
Re: FGWorkingHoursBar problem
« Reply #8 on: May 21, 2020, 08:35:36 AM »
Hi Raja,
#1 thanks for the suggestion.it works fine. According to the documentation:
"Default is true. When set, the bar widths in the GanttChart will be optimized such that the actual bar's width is not too wider than the chart view width. This helps improve the performance of the chart. When you use a horizontal gradient brush be aware of the rendered start and end times of the bar which can be got from GetBarRenderStartTime and GetBarRenderEndTime. "
Set it to false, is it just a matter of performance?

#2 I beg your pardon but I don't understand your suggestion: actually I use a custom provider scheduler but my question is the same with 8x5 too. I use the FlexyGantt as production load chart, so each resource for me  is a machine.
then each resource can have a different schedule and all tasks take resource schedule, and this is ok.
But if you suppose all resource use 8x5 schedule, I'd like FlexyGantt background doesn't show a gray box for all saturdays and sundays because this don't correspond to the resource schedule (8x5). Then my question if the saturdays and sundays gray box can be hidden.
I try to set FlexyGantt WoringSchedule to null but no results. I need to use a custom 24x7 provider?

Thanks very much
f

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 182
Re: FGWorkingHoursBar problem
« Reply #9 on: May 21, 2020, 04:48:41 PM »
Francesco,
#1. Yes, it is for performance.

#2. We are creating a reference sample, will update you soon.

Thanks,
Raja

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 182
Re: FGWorkingHoursBar problem
« Reply #10 on: May 29, 2020, 09:34:29 AM »
Francesco,

#2. We have created a reference sample and sent it in mail, please check it and let us know if you need further assistance.

Thanks,
Raja.

Francesco Fantoni

  • Customers
  • Newbie
  • *
  • Posts: 25
Re: FGWorkingHoursBar problem
« Reply #11 on: June 11, 2020, 03:41:54 PM »
Hi Raja,
your sample works fine!

Thanks!
Francesco