Premium support for our pure JavaScript UI components


Post by david10sing »

Hi

Trying to setup scheduler pro in React, passing project props with autoLoad: true and load url, the data does not get loaded.

Other properties such as resourcesData, eventsData, etc works...

Is there an example?


Post by alex.l »

Hi david10sing,

Could you please provide a code snippet or test case what exactly are you trying to do? Also please provide a version of Scheduler Pro you are using.
Did you check our React example? https://bryntum.com/examples/scheduler-pro/frameworks/react/javascript/resource-histogram/build/index.html
Here is a code snippet how it should be done:

project: {
  transport: {
    load: {
      url: 'data/data.json',
    },
  },
  autoLoad: true,
}

Maybe you missed transport: {} wrapper. It's hard to say without an example.
Btw, It works well in the example by the link I provided above.

All best,
Alex

All the best,
Alex


Post by david10sing »

Hi Alex,

I'm loading Scheduler Pro v4.0.0-beta-2 and I've used the code you pasted above with no luck...

No idea if I'm missing anything else to initialiase SchedulerPro.

I'm also using the react wrapper file to load Scheduler Pro.


Post by alex.l »

Hi david10sing,

It's hard to say without a test case.
Could you try it with our example?
https://bryntum.com/examples/scheduler-pro/frameworks/react/javascript/resource-histogram/build/index.html

If no luck, please share your code, we will review and find the problem. The best would be to have a runnable test case. You may start from trying to reproduce it in our example.

All best,
Alex

All the best,
Alex


Post Reply