Bind Byte Array To ImageEditor

2 posts, 0 answers
  1. Eric
    Eric avatar
    1 posts
    Member since:
    Oct 2012

    Posted 30 Oct 2012 Link to this post

    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;

    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.

  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 02 Nov 2012 Link to this post

    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

    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.
Back to Top