CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

shifted week

by assapan » 22 Aug 2016 14:34

Hi,
My customers wanted to have the current day shifted in week , i mean current day have to be first or second column and other days are on right side .
So i did modification on JQSchedulerOptions.WeekStartDay to represent D-Day or D-Day - 2 or D-Day - 1 ( In French J , J -1 , J - 2) , in order to do so i had to modify source code of function TIWCGJQCustomScheduler.GetData
Code: Select all
    svWeek:
    begin
      D:= DayOfTheWeek(AShowDate);
       AStartDate:= AShowDate;

      while D<>JQSchedulerOptions.WeekStartDay do begin
        dec(D);
        if D<0 then
          D:=6;
         AStartDate:= IncDay(AStartDate,-1);

      end;


      AEndDate:= IncDay(AStartDate,6);
    end;


BUT by handling the same variable for (WeekStartDay ) for month view , i have to modify WeekStartDay before changing to month view which is acceptable for me..

a video of demo
http://assapan.fr/schedulermodified.mp4
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

Return to JQScheduler

cron

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.