Hi team,
I want to put a datepicker to choose data to load.
got any sample code ?
thanks
Shawn
Please check this example https://bryntum.com/examples/scheduler-pro/maps/
It has datefield in the tbar.
And docs here: https://bryntum.com/docs/scheduler-pro/api/Core/widget/DateField
https://bryntum.com/docs/scheduler-pro/api/SchedulerPro/view/SchedulerPro#property-startDate
All the best,
Alex
Hi Alex,
thanks the the example. do you have example on how to trigger the API again upon date change?
const API = "https://xxxxx/eqpdev/rest/loadData?from="+startDate+"&to="+endDate;
I'm able to trigger the API using standard JV method. But i cant reload the scheduler.
There is a https://bryntum.com/docs/scheduler-pro/api/SchedulerPro/model/ProjectModel#function-load method, you can pass URL params in parameters.
schedulerPro.project.load({ params: { startDate : someDate } })
Full guide is here https://bryntum.com/docs/scheduler-pro/guide/SchedulerPro/basics/project_data
All the best,
Alex
Hi Alex,
thanks for the reply. my event didnt load up when i try to reload the data.
SchedulerPro uses multi-assignment mode by default, please check the guide https://bryntum.com/docs/scheduler-pro/guide/SchedulerPro/basics/project_data#working-with-inline-data
Please supply assignments in the
assignmentsData
section. Scheduler Pro differs from Scheduler in that it does not support single assignment usingevent.resourceId
.
All the best,
Alex