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

How to make RadBinaryImage invisible in Javascript

2 Answers 137 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Jagat
Top achievements
Rank 1
Jagat asked on 10 Mar 2012, 11:25 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 13 Mar 2012, 06:54 AM
Hello,

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

Thanks,
Princy.
0
Jagat
Top achievements
Rank 1
answered on 13 Mar 2012, 03:19 PM
Thanks. It Worked,!!!!
Tags
BinaryImage
Asked by
Jagat
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jagat
Top achievements
Rank 1
Share this question
or