This is a migrated thread and some comments may be shown as answers.

What is needed to display Delete button in event editor (mine is hidden)?

1 Answer 96 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Cory Seaman
Top achievements
Rank 1
Cory Seaman asked on 19 May 2015, 01:00 PM

I have a Scheduler with a custom-created DataSource (we have to merge multiple event arrays on the client).  I've defined a "remove" event on my SchedulerOptions, as well as set "editable.destroy" and "editable.confirmation" to true.  When I view the Scheduler in the browser, the "X" appears on events and I'm prompted to confirm when I try to delete the events, as expected.  However, when I double-click to edit an event, my (custom) editor shows Save and Cancel buttons, but no Delete button.  I'm not doing anything specific to hide it that I'm aware of.  Is it because the DataSource isn't set up with a specific "transport.destroy" method?  I read another thread about a legit Kendo bug in which someone couldn't get the Delete button to disappear by using an "editable.destroy" value of false, and that was flagged to be fixed.  Any guidance here?

I'm using v2014.3.1316.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 21 May 2015, 09:35 AM
Hello Cory,

Here is a quote of the answer that I posted to the support thread opened on the same subject. I would like to ask you continue our discussion in only one thread to avoid duplication

Thank you for the repro demo. The "delete" button is not displayed in this case, because you are adding SchedulerEvent instance without specifying its "id" field. In this case the event will be considered as new and thus the "Delete" button will not be rendered. Check the updated demo.

Note that the schema.model will not be applied over the source, when it is set on client. In other words, the schema will not be used, because the data is already converted into SchedulerEvent instances.
As a side note, the schema configuration should be placed inside of a dataSource option, because in your demo it is added in the incorrect place.


Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
Cory Seaman
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or