Our pure JavaScript Scheduler component


Post by harsh.bhardwaj »

Hi, We are facing an issue while allowing infiniteScroll : true in Scheduler config.

Code snippet of config

 this.schedulerTimeline = new Scheduler({
      appendTo: 'timeline-scheduler',
      rowHeight: 50,
      barMargin: 5,
      eventStyle: 'colored',
      readOnly: true,
      features: {
        eventDrag: {
          constrainDragToResource: true
        },
        timeRanges: {
          showCurrentTimeLine: {
            name: 'Now'
          },
          showHeaderElements: false
        },
        tree: true,
      },
      viewPreset: 'hourAndDay',
      columns: [
        {
          type: 'tree',
          text: 'Entites',
          width: 280,
          field: 'name'
        },
      ],
      infiniteScroll : true,

  resources: resources,
  events: events,
});

Error We are facing

ERROR Error: Invalid time axis configuration or filter, please check your input data.
    at TimeAxis.internalOnReconfigure 
    at TimeAxis.reconfigure 
    at Scheduler.setTimeSpan
    at Scheduler.initScroll 
    at Scheduler.initScroll 
    at Scheduler.onPaint 
    at Scheduler.onPaint 
    at functionChainRunner 
    at Scheduler.plugInto.<computed> [as onPaint]    at Scheduler.callback 

Post by saki »

We need a runnable code and the data that trigger this issue to investigate it.

Note: Your code does not look like Angular. If you can reproduce it in one of our vanilla examples we would prefer that. It's easier to debug a non-framework code.


Post by harsh.bhardwaj »

The issue is very specific to the configuration of TimeAxis or TimeRange or TimeSpan that we might be missing while setting up Scheduler configuration. Right now I am unable to find any proper API docs to set the above, The Error is only occurring when

{infiniteScroll : True}.

Post by saki »

Setting that option to true alone would not trigger the error because then this demo https://bryntum.com/examples/scheduler/infinite-scroll/ would not work. Therefore, we need your case to sort out what's wrong.


Post Reply