jQuery UI Widgets › Forums › Scheduler › Global appointment restrictions
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 8 years, 9 months ago.
-
Author
-
Hello,
In documentation you explained about restrictions in appointments, but explained one by one, in individually form using setAppointmentProperty method.
I need that all my appoinments have the same restrinction like ‘draggable: false’ and ‘resizable:false’ . Can I set this in global mode?
Thank you,
Gustav.Hi Gustav,
Through the appointmentDataFields setting and your data source. If you have such settings defined in both places, you will be able to achieve that.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hello and thank you!
Sorry, but i don’t understand, this is my code, can you help me?
var source = { dataType: 'json', dataFields: [ { name: 'id', type: 'string' }, { name: 'status', type: 'string' }, { name: 'about', type: 'string' }, { name: 'address', type: 'string' }, { name: 'company', type: 'string'}, { name: 'name', type: 'string' }, { name: 'style', type: 'string' }, { name: 'calendar', type: 'string' }, { name: 'start', type: 'date', format: "yyyy-MM-dd HH:mm" }, { name: 'end', type: 'date', format: "yyyy-MM-dd HH:mm" } ], id: 'id', url: '<?=base_url()?>/js/appointments.txt' }; var adapter = new $.jqx.dataAdapter(source); $("#scheduler").jqxScheduler({ date: new $.jqx.date(<?=date("Y")?>, <?=date("m")?>, <?=date("d")?>), width: '100%', height: 600, source: adapter, showLegend: true, editDialog: false, appointmentDataFields: { from: "start", to: "end", id: "id", description: "about", location: "address", subject: "name", style: "style", status: "status" }, localization: { firstDay: 1, }, view: 'weekView', views: [ 'dayView', 'weekView', 'monthView' ] });
Best regards,
Gustav.Hi Gustav,
If you want to have global restrictions, you should have these defined in the source object and in the appointmentDataFields object.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.