Discuss anything related to web development but no technical support questions


Post by akalanka »

Hi,
In my Bryntum-Scheduler project, I need to show a set of days in the week as non-working-days.
And also users should be able to create events in non working days.

Is there any way I can Implement this behavior using Project.Calendar ?

Thing is, When I set several time-ranges in the calendar as non-working days, there are no configuration to allow users to create appointments by overriding the default configurations.

Is there any other way or a specific configuration to make this possible in Scheduler Pro ?


Post by marcio »

Hey akalanka,

Thanks for reaching out.

By your description, you can use https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#field-skipNonWorkingTimeInDurationWhenSchedulingManually and https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#field-skipNonWorkingTimeWhenSchedulingManually to manually schedule the tasks (you need set manuallyScheduled to true in your eventModel - https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/EventModel#field-manuallyScheduled) that you want to ignore the non-working days.

Please let us know if that works for your case.

Best regards,
Márcio

How to ask for help? Please read our Support Policy


Post by akalanka »

Hi marcio,
that seems like a good solution,

But is there a way that I can pre-configure the scheduler to be all the events created by user gets the property "manuallyScheduled" to true. ?

And Also to enable the create-event functionality by double click on the scheduler for non-working days ?


Post by ghulam.ghous »

But is there a way that I can pre-configure the scheduler to be all the events created by user gets the property "manuallyScheduled" to true. ?

Yes there is. Please set the defaultValue on the eventModel for manuallyScheduled.

          static fields = [
                { name : 'manuallyScheduled', defaultValue : true }
           ];
     }

// now set the class on project eventstore
new SchedulerPro({
        project : {
            eventStore : {
                modelClass : ProEvent
            },
 })

And to enable eventCreation using dbl click on nonworking time, it is not possible.


Post Reply