jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Dialog window Buttons Dialog window Buttons #82971

    manjulam
    Participant

    I was able to disable and enable the delete button conditionally like this:

    if(editAppointment.status.toUpperCase() != ‘AVAILABLE’)
    {
    fields.deleteButton.jqxButton({ disabled: true });

    }
    else
    {
    fields.deleteButton.jqxButton({ disabled: false });
    }
    It would be nicer to hide the button though.

    in reply to: Dialog window Buttons Dialog window Buttons #82970

    manjulam
    Participant

    Thank you for the reply. Really appreciate your quick response. Our requirement is to hide/show the delete button conditionally.
    If that is not an option, is there a way to check a condition in the delete event of the appointment and in some way not remove the appointment from the calendar?

    I work for a small startup and I am evaluating the product features and our requirements. Quite happy with the product offering so far, and hope to find a good workaround for our requirements. I think it will be a good value addition to buy your product suite. Thank you.

    Manjula

    in reply to: Dialog window Buttons Dialog window Buttons #82933

    manjulam
    Participant

    I have a requirement to check the status of an appointment and prevent deleting the appointment in some cases. I tried to hide the delete button in the editDialoOpen event but it did not work. This is what I have tried:

    editDialogOpen: function (dialog, fields, editAppointment)
    {

    if(editAppointment.status.toUpperCase() != ‘AVAILABLE’)
    {
    fields.deleteButton.hide();
    //fields.saveButton.hide();

    }
    },

    I am able to hide the save and cancel buttons, just not the delete button. Any guidance is appreciated.

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