How to make RadBinaryImage invisible in Javascript

3 posts, 1 answers
  1. Jagat
    Jagat avatar
    135 posts
    Member since:
    Jan 2011

    Posted 10 Mar 2012 Link to this post

    Hello,

      I have a RadBInaryImage and i would like to change the visibility from javascript. Right now I am making the source empty but i still see the empty image with cross mark. So i wanted it to be invisible.

    var OldImage = $get("<%= rbiClientImage.ClientID %>");    
           if (OldImage != null)
           {       
              OldImage.src = "";     
           }

    Is there any property to make the binaryimage invisible?

    Appreciate the help
    Thanks
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 13 Mar 2012 Link to this post

    Hello,

    Try setting visibility of RadBinaryImage to hidden.
    JS:
    var OldImage = $get("<%= rbiClientImage.ClientID %>");   
    if (OldImage != null)
      {      
        OldImage.style.visibility = "hidden";
      }

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jagat
    Jagat avatar
    135 posts
    Member since:
    Jan 2011

    Posted 13 Mar 2012 Link to this post

    Thanks. It Worked,!!!!
Back to Top