Our pure JavaScript Scheduler component

Post by calendardeveloper »

I am loading inlineData like this

multiProject.current.instance.inlineData = { resourcesData: resources, eventsData: events, timeRangesData: timeRanges, };

However, the timeRanges just won't show up - what am I doing wrong?

Timeranges look like this

const timeRanges = [
    id: 1,
    name: ``,
    startDate: new Date(new Date().setHours(0, 0, 0, 0)),
    endDate: new Date(new Date().setHours(24, 0, 0, 0)),
    cls: 'today',
    id: 2,
    name: ``,
    recurrenceRule: 'FREQ=WEEKLY;BYDAY=SA,SU;',
    startDate: schedulerConfig.startDate,
    endDate: schedulerConfig.endDate,
    cls: 'weekend',

Post by marcio »

Hey calendardeveloper,

We have a section about how to set the inlineData inside the ProjectModel

So would be something like this

multiProject.current.instance.projectModel.resources = resources;
multiProject.current.instance.projectModel.events = events;
multiProject.current.instance.projectModel.timeRanges = timeRanges;


Best regards,

Post by mats »

Can you please provide a small runnable test case we can take a look at?

Post by calendardeveloper »

Actually, I just noticed (After a lot of different config changes) that if I set enableEventAnimations: false, the timeranges don't show up.

Post by calendardeveloper »

Actually, the above may not be true. But it's a bit random...I turn on and off a few props and the time ranges show randomly.

Post by mats »

Sounds very strange, can you please share your full code?

Post Reply