Our pure JavaScript Scheduler component


Post by nico-lgtech-gmail »

Hello, I have a problem with the scheduler component. the row of the column to separate day, work for one of my scheduler but not for the second :/

Attachments
Client.PNG
Client.PNG (47.62 KiB) Viewed 1252 times
Utilisateur.PNG
Utilisateur.PNG (38.44 KiB) Viewed 1252 times

Post by arcady »

Hard to tell something w/o looking at the code. Please provide a runnable test case that we could check.


Post by nico-lgtech-gmail »

This code is where le line between two days don't change

this.schedu = new Scheduler({
      appendTo: document.getElementById('schedu'),
      style: 'background-color: beige;',
      height: this.heightScheduler,
      rowHeight: 60,
      minHeight: 100,
      barMargin: 5,

  startDate: this.schedulerService.startDate.getValue(),
  endDate: this.schedulerService.endDate.getValue(),

  viewPreset: this.schedulerService.getViewPreset(),
  // viewPreset: 'hourAndDay',

  columns: this.columns,
  eventRenderer: this.eventRenderer,

  createEventOnDblClick: false,
  features: {
    // sort: 'name',
    timeRanges: {
      currentDateFormat: '',
      showCurrentTimeLine: true,
      // timeRanges: this.weekend
      timeRanges: this.schedulerService.publicHolidays
    },
    eventDragCreate: {
      disabled: false,
      showTooltip: true,
      validatorFn: () => {
        return true;
      }
    },
    filterBar: true,
    eventResize: true,
    eventDrag: true,
    eventEdit: false,
    eventTooltip: this.tooltipRenderer,
    scheduleTooltip: false,
    cellTooltip: true,
    scheduleContextMenu: {
      items: {
        addEvent: false,
        unassignEvent: false
      }
    },
    eventContextMenu: {
      items: {
        deleteEvent: false,
        unassignEvent: false
      }
    },
    contextMenu: false,
    columnLines: true
  },
  resourceStore: r,
  workingTime: {
    fromHour: this.setting.startTime,
    toHour: this.setting.endTime
  },
  zoomOnMouseWheel: false,
  zoomOnTimeAxisDoubleClick: false,
  showAddEventInContextMenu: false
});

This code there is the line

this.schedu = new Scheduler({
      appendTo: document.getElementById('schedu'),
      style: 'background-color: beige;',
      height: this.heightScheduler,
      rowHeight: 60,
      minHeight: 100,
      barMargin: 0,
      startDate: this.schedulerService.startDate.getValue(),
      endDate: this.schedulerService.endDate.getValue(),
      viewPreset: this.schedulerService.getViewPreset(),
      columns: this.columns,
      eventRenderer: this.eventRenderer,
      createEventOnDblClick: false,
      features: {
        timeRanges: {
          currentDateFormat: '',
          showCurrentTimeLine: true
          // timeRanges: this.weekend
        },
        eventDragCreate: false,
        eventResize: false,
        eventDrag: false,
        eventEdit: false,
        eventTooltip: this.tooltipRenderer,
        scheduleTooltip: false,
        cellTooltip: true,
        scheduleContextMenu: {
          items: {
            addEvent: false,
            unassignEvent: false
          }
        },
        eventContextMenu: {
          items: {
            deleteEvent: false,
            unassignEvent: false
          }
        },
        contextMenu: false,
        columnLines: true
      },
      resourceStore: r,
      zoomOnMouseWheel: false,
      zoomOnTimeAxisDoubleClick: false,
      showAddEventInContextMenu: false
    });

Post by arcady »

Ok, I don't see any obvious reason why it wouldn't work. Can we have a minimal runnable test case showing the problem?


Post by nico-lgtech-gmail »

I can't show a runnable test case :/


Post by pmiklashevich »

Please modify one of our examples to create a testcase. Pick out one and apply minimal changes to reproduce the issue. Then zip it up and submit here. How to ask for help is described here: viewtopic.php?f=35&t=772

Pavlo Miklashevych
Sr. Frontend Developer


Post by nico-lgtech-gmail »

I find what is the difference, when i add workingTime to scheduler config,
the line between the days does not display


Post by sergey.maltsev »

Hi!

Does it solve your initial question?


Post by nico-lgtech-gmail »

no, when i add workingtime to scheduler, the line between day not workin


Post by sergey.maltsev »

Hi!

If you can't provide full application code please attach config which is passed to Scheduler constructor which we can test.
And also please tell what is the desired behavior you are looking for with or without red day line?


Post Reply