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

Replace Image from Server-Side

1 Answer 63 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Olivier
Top achievements
Rank 1
Olivier asked on 07 Sep 2015, 11:41 PM

I have a page that contains a Button. By pressing this button, a RadWindow pops up. this RadWindow contains a RadImageEditor and should show a different image in each time (takes its value from the button). 

in my case the server function which load the image to RadImageEditor does not fire! any help to do that in server on client side?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 08 Sep 2015, 09:59 AM

Hi Olivier,

There are two main scenarios:

  • If you are using the ContentTemplate - in this case, make sure the button fires a postback and that the AJAX response includes the contents of the RadWIndow (see the How to Use RadWindow with AJAX article). In the Button_Click event you can change the ImageUrl of the ImageEditor.
  • If you are using an entire page for the RadWindow - set the RadWindow's ReloadOnShow property to true to ensure you have GET requests for the content page. This property usually goes well with setting ShowContentDuringLoad to false to provide a loading sign. You can then use the query string to provide parameters that you can read on the server: http://docs.telerik.com/devtools/aspnet-ajax/controls/window/how-to/use-querystring-to-provide-arguments-to-radwindow.


Regards,

Marin Bratanov
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
ImageEditor
Asked by
Olivier
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or