jQWidgets Forums

jQuery UI Widgets Forums Scheduler Disable Default Edit Dialog

This topic contains 10 replies, has 5 voices, and was last updated by  TDS 5 years, 11 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • Disable Default Edit Dialog #77152

    aoverton07
    Participant

    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)?

    Disable Default Edit Dialog #77156

    aoverton07
    Participant

    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…

    Disable Default Edit Dialog #77159

    Peter Stoev
    Keymaster

    Hi aoverton07,

    There is no option to turn the Dialog off. There is option to customize it only.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Disable Default Edit Dialog #77199

    aoverton07
    Participant

    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.

    Disable Default Edit Dialog #77207

    Peter Stoev
    Keymaster

    Hi aoverton07,

    We will think about that.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Disable Default Edit Dialog #77232

    74bit
    Participant

    I disabled the edit-dialog with this dirty hack:

    $('#scheduler').on('cellDoubleClick', function (event) { 
        $('#scheduler').jqxScheduler('closeDialog');
    });
    Disable Default Edit Dialog #77236

    aoverton07
    Participant

    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)…

    Disable Default Edit Dialog #83487

    rccd
    Participant

    74 bit,

    This works for me

    $(‘#scheduler’).on(‘cellDoubleClick’, function (event) {
    $(‘#scheduler’).jqxScheduler(‘closeDialog’);
    });

    thank you!

    Disable Default Edit Dialog #83488

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Disable Default Edit Dialog #105189

    TDS
    Participant

    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())

    Disable Default Edit Dialog #105190

    TDS
    Participant

    Small mistake:

    b.editRecurrenceDialog.jqxWindow(“close”);

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.