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

Bind Byte Array To ImageEditor

1 Answer 129 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 30 Oct 2012, 03:35 PM
I am looking for a way to simply bind a byte array to the ImageEditor.  On my page, users can click various link buttons which will allow them to crop pictures coming from the database.  How do I invoke the ImageLoading event each time a user clicks a link button?  Right now it seems the ImageLoading event only fires when the page loads.

It would be ideal if the control could be used like this:

ImageEditor1.DataSource = SomeByteArray;
ImageEditor1.DataBind();

The DataBind would then fire an event similar to ImageLoading but you wouldn't have to handle the memory stream in the event, the DataBind would simply do it.

Just any idea.  My immediate need is figuring out how to trigger the ImageLoading event.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 02 Nov 2012, 10:56 AM
Hi Eric,

In order to achieve the required result you can assign custom content provider to RadImageEditor and work with images stored in database. Please take a look at the following live demo utilizing such content provider:
ImageEditor / Using Custom Content Provider

Regards,
Dobromir
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
Eric
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or