imageURL not persisted on postback

2 posts, 0 answers
  1. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 06 Sep 2010 Link to this post

    Here's my code to make new nodes

    function addApproverClick() {
            var window = $find("<%= newTabWindow.ClientID %>");
            var tree = $find("<%= treeView.ClientID %>");
            var node = new Telerik.Web.UI.RadTreeNode();
            if (addType == "Add") {
            } else {

    So it all works, great when I click a button on the page to postback, all the nodes created clientside are missing that image.

    It seems that it's appending the Host to the beginning of it instead of what I assigned it.

  2. Yana
    Yana avatar
    4931 posts

    Posted 08 Sep 2010 Link to this post

    Hello Steve,

    Please avoid using relative urls (with ../) when they're set on the client.  If the url is set like this:


    the image will be shown as expected after postback.

    Best wishes,
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top