jQWidgets Forums
jQuery UI Widgets › Forums › Scheduler › Disable Default Edit Dialog
Tagged: jquery scheduler, jqxScheduler, Scheduler widget
This topic contains 10 replies, has 5 voices, and was last updated by TDS 5 years, 11 months ago.
-
Author
-
I have migrated my calendar over from fullcalendar to jqxScheduler. I already have edit dialogs, and context menus created for handling all CRUD operations, is there a way I can completely disable the default Edit Dialog and the Context Menus, so they are never created or added to the DOM? And do not open on the corresponding events (double click and right click)?
I see there is an option to turn off the ‘contextMenu’ but I still can not find a way to turn off the default Edit Dialog…
I have tried returning true/false, preventDefault, and stopPropagation inside all of the editDialog callbacks to no avail…
Hi aoverton07,
There is no option to turn the Dialog off. There is option to customize it only.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Would you consider adding this option in a future release? Not sure why we are forced to use the edit dialog in this manner, your toolbox provides all the means to create our own editing windows. And it causes problems when my users need to edit an event outside of the Scheduler and it has not yet been initialized. To me it doesn’t make sense to initialize the whole scheduler in order to edit just one event.
Hi aoverton07,
We will think about that.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/I disabled the edit-dialog with this dirty hack:
$('#scheduler').on('cellDoubleClick', function (event) { $('#scheduler').jqxScheduler('closeDialog'); });
74 bit,
Thank you, for safe measure you can add the same code in the ‘editDialogOpen’ handler. The problem is I am working with a single page application where DOM nodes, and event listeners are at a premium. With this method, the dialog window is still added to the DOM and initialized (along with all of it’s inputs)…
74 bit,
This works for me
$(‘#scheduler’).on(‘cellDoubleClick’, function (event) {
$(‘#scheduler’).jqxScheduler(‘closeDialog’);
});thank you!
Hi rccd,
You would better use the Scheduler editDialog property to disable it.
$("#jqxScheduler").jqxScheduler({ editDialog: false) });
The Scheduler API is different since this topic was posted.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Btw, some change for correctness:
jqxScheduler:
From
closeDialog: function() { var b = this; b._editDialog.jqxWindow("close"); },
To
closeDialog: function() { var b = this; b._editDialog.jqxWindow("close"); if (b.editRecurrenceDialog) { b.editRecurrenceDialog("close"); } },
From
return r.date().getTimezoneOffset() < Math.max(z.getTimezoneOffset(), x.getTimezoneOffset())
To
return r.date().toDate().getTimezoneOffset() < Math.max(z.getTimezoneOffset(), x.getTimezoneOffset())
Small mistake:
b.editRecurrenceDialog.jqxWindow(“close”);
-
AuthorPosts
You must be logged in to reply to this topic.