Home Forums FlexGanttFX How to change or disable weekend rendering

Tagged: 

  • Author
    Posts
  • gmoubarak
    Participant
    Post count: 7
    #13064 |

    I need to be able to render weekend based on a certain calendar (weekends and sequence of holidays) depending on the project requirement.

    where can I control setting for weekend and holiday rendering.

    I got into dateline and setting the first day of the week but not to the weekend

    Regards

    Gerard

  • Dirk Lemmermann
    Keymaster
    Post count: 60
    #13066 |

    Please have a look at this page in the developer manual:

    https://flexgantt.atlassian.net/wiki/display/FFXMAN/4.9+Calendar

    It lists the source code of the WeekendCalendar class. You should be able to go from there.

  • gmoubarak
    Participant
    Post count: 7
    #13067 |

    Hi Dirk,

    thanks ur reply helped but i noticed that the timeline weekend highlight is not synchronized with the weekend highlight on the gantt even though I cleared all the calendars and added the calendar to gantt graphics and to the timeline dateline.

    Then i tried something else. I cleared the calendars from both dateline and gantt graphics and still the saturday and sundays are still highlighted on the timeline

    gantt.getGraphics().getCalendars().clear();
    gantt.getTimeline().getDateline().getCalendars().clear();

    • Dirk Lemmermann
      Keymaster
      Post count: 60
      #13073 |

      Just to make sure this thread finishes with an answer I am repeating the answer from a similar thread.

      The highlights are caused by CSS styling. Those days have .saturday and .sunday styles assigned to them. Those styles are defined in dateline.css:

      
      .scale-bottom > .saturday, .scale-bottom > .sunday {
          -fx-background-color: rgba(0,0,0,0.1) ;
      }
      
      .scale-bottom > .saturday:hover, .scale-bottom > .sunday:hover {
          -fx-background-color: rgba(0,0,0,0.1) ;
      }
      

You must be logged in to reply to this topic.