Our pure JavaScript Scheduler component


Post by dimehb »

I'm trying to set up the Scheduler component using a trial version. I am noticing something odd, and I was wondering what might be going wrong here. I followed the tutorials to set up the component, which works partially, but it doesn't apply some settings.

<Scheduler schedulerRef={schedulerRef}
          resources={resources}
          viewPreset="hourAndDay"
          startDate={new Date(2017, 0, 1)}
          endDate={new Date(2017, 0, 2)}
          events={events}
          columns={[
            { text: 'Name', field: 'name', flex: 1 }
          ]}
        />
        

The events, resources and columns are configured correctly. However, the viewPreset field and dates don't seem to be doing anything. The props are passed on to the scheduler though.

Any idea what I'm doing wrong here?


Post by marcio »

Hey dimehb,

Which version are you using?? The trial version doesn't have a "feature limitation", you have all the features just like if you have the normal version, so it's not related to that. I tried version 5.0.8 in our React demo and the piece of code you shared worked just fine. So maybe you could set up a small sample with all your configuration to check what's causing that issue.

Best regards,
Márcio


Post by dimehb »

I was on 5.0.7. Bumping the packages to 5.1.0 magically resolved the issue. Thanks for hinting at the package version!


Post Reply