ImageBrowser destroy confirmation message

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    3 posts
    Member since:
    Nov 2012

    Posted 04 Jun 2015 Link to this post

    When in the Kendo editor image browser, there is a delete button that is only visible when a file or folder is selected. It invokes the "Destroy" post. When pressed a javascript confirmation is invoked with the message "Are you sure you want to delete "{fileName}"". How would I override this message in MVC Razor. 


  2. Alexander Popov
    Alexander Popov avatar
    1434 posts

    Posted 08 Jun 2015 Link to this post

    Hi Jeff,

    Overriding the default message is not supported when using the MVC wrappers. You could however, modify the ImageBrowser's prototype prior the Editor's initialization. For example:  
        kendo.ui.ImageBrowser.prototype.options.messages.deleteFile = "Custom message - Are you sure you want to delete '{0}'?";

    Alexander Popov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top