Replace Image from Server-Side

2 posts, 0 answers
  1. Olivier
    Olivier avatar
    2 posts
    Member since:
    Sep 2013

    Posted 07 Sep 2015 Link to this post

    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?


  2. Marin Bratanov
    Marin Bratanov avatar
    5707 posts

    Posted 08 Sep 2015 Link to this post

    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:


    Marin Bratanov
    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
Back to Top