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

2 posts, 0 answers
  1. Cory Seaman
    Cory Seaman avatar
    13 posts
    Member since:
    Jul 2006

    Posted 19 May 2015 Link to this post

    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.

  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3747 posts

    Posted 21 May 2015 Link to this post

    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!
     
Back to Top