jQWidgets Forums
Forum Replies Created
-
Author
-
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.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
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.
-
AuthorPosts