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

I have 3 Questions for radImageEditor

1 Answer 221 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Semih
Top achievements
Rank 1
Semih asked on 07 Apr 2012, 11:39 AM
Hi everybody,

I have a problems for radimageeditor,

1-)    <script type="text/javascript">
        function ClientLoad(sender) {
            sender.zoomImage(61);
        }
</script> 

it's code working on firefox,internet explorer but don't working on Google Chrome, How is edit this code ?(component radimageeditor) 


2-) I want to save as image on server with button_click , i'm how is the make ? (component radimageeditor)
 
3-) I'm saved as image later save new filename write on MSSQL database, How is the make ?(component radimageeditor) 


Thank you now,

1 Answer, 1 is accepted

Sort by
0
Niko
Telerik team
answered on 11 Apr 2012, 02:05 PM
Hello Semih,

The first issue that you are facing was not reproducible on my side. The zoomImage method seems to be working just fine. Please, find attached a sample project for you to test it on your side.

Saving the image on the server could be done using the saveImageOnServer client-side method. This method will trigger a postback to the server and save the image under the provided name. Please, refer to the client-side documentation on the ImageEditor for more information on the topic - http://www.telerik.com/help/aspnet-ajax/radimageeditor-client-side-api.html. Furthermore this approach is implemented in the attached sample project under the handleClientClick method.

As far as your third question is concerned, you can implement custom saving procedures in two ways. First approach is to utilize the ImageSaving server-side method, where you should cancel the default implementation and having access to the editableImage of the ImageEditor you can save it in any storage you want, providing a custom storage procedure. Refer to any of the following forum streams - http://www.telerik.com/community/forums/aspnet-ajax/image-editor/saveeditableimage.aspxhttp://www.telerik.com/community/forums/aspnet-ajax/image-editor/server-side-override-of-buttons.aspx
The second method is to implement a custom image content provider as in the following help article - http://www.telerik.com/help/aspnet-ajax/radimageeditor-custom-image-provider.html. Simply providing a custom implemenation for the SaveImage method will result in saving the image in any storage you wish to.

Hope this helps.

Kind regards,
Niko
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ImageEditor
Asked by
Semih
Top achievements
Rank 1
Answers by
Niko
Telerik team
Share this question
or