Hi,
i'm trying to figure how the scheduler pro can pass the start and end date when calling the project load manually. I have set the passStartEndParameters as true but unfortunately, the dates are not passed in the request. What i'm doing wrong?
Here's my scheduler code. I can can provide you a runnable example if you prefer!
const App: FunctionComponent = () => {
const schedulerRef = useRef<typeof BryntumSchedulerPro | null>(null);
const schedulerConfig = {
startDate: new Date(2018, 1, 7, 8),
endDate: new Date(2018, 1, 7, 22),
viewPreset: "weekAndDayLetter",
passStartEndParameters: true,
project: {
autoLoad: false,
writeAllFields: true,
transport: {
load: {
url: `data/data.json`,
},
},
},
columns: [
{
type: "resourceInfo",
text: "Staff",
width: 130,
}
],
};
// load and set data
useEffect(() => {
const project = schedulerRef.current.instance.project;
project.load();
}, []);
return (
<Fragment>
<BryntumSchedulerPro ref={schedulerRef} {...schedulerConfig} />
</Fragment>
);
};
export default App;