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

Save Command

1 Answer 210 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
roger
Top achievements
Rank 1
roger asked on 18 Jul 2011, 10:45 PM
Short question. How can I intercept the save command, i.e. not show the save dialog, but write the image into a database? I tried the ImageToolViewModel, but in there are only tools defined... no save button.

Edit: Found the ImageEditorRoutedCommands.Save
is there a (telerik) best practice to override the command?

Another Edit: Ok there's myImageEditorUI.ImageEditor.CommandBindings ... where I can add a command binding to the save command and set handled = true ... however, ImageEditor seems to be (always) null, even after an image has been loaded.

Thanks for your advice!

1 Answer, 1 is accepted

Sort by
0
Ivailo Karamanolev
Telerik team
answered on 20 Jul 2011, 11:13 AM
Hi Roger,

One option would be to use directly RadImageEditor without UI and implement your own.
However, if you don't want to go into that, you can set a new template for the RadImageEditorUI based on the original one which changes the command, to which the Save button is bound.

Best wishes,
Ivailo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
ImageEditor
Asked by
roger
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Share this question
or