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

ImageBrowser destroy confirmation message

1 Answer 59 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 04 Jun 2015, 10:34 PM

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. 

Thanks

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 08 Jun 2015, 11:05 AM
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:  
<script>
    kendo.ui.ImageBrowser.prototype.options.messages.deleteFile = "Custom message - Are you sure you want to delete '{0}'?";
</script>
@(Html.Kendo().Editor()
      .Name("editor")


Regards,
Alexander Popov
Telerik
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
Tags
Editor
Asked by
Jeff
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or