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

Transparent modal window background color

4 Answers 820 Views
Window
This is a migrated thread and some comments may be shown as answers.
Fakhrul
Top achievements
Rank 1
Fakhrul asked on 15 Apr 2009, 11:16 AM
Hi,

How can i set transparent modal window background color? I mean it will be modal but not gray background, it will be transparent as like before open radwindow.

Thanks in advance.

Fakhrul

4 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 15 Apr 2009, 01:03 PM
Hello Fakhrul,

You can try out the following code to set the modal background color :
<style type="text/css">  
 .TelerikModalOverlay   
 {    
  background:Red !important;    
  filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100) !important;     
  opacity: 1 !important;      
  -moz-opacity: 1 !important;  
 }  
</style>   

Thanks
Princy.
0
Accepted
Georgi Tunev
Telerik team
answered on 15 Apr 2009, 01:30 PM
Hi Fakhrul,

To do that you could use the following style:
.TelerikModalOverlay 
    filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0) !important;  
    opacity: 0 !important;  
    -moz-opacity: 0 !important; 


Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Fakhrul
Top achievements
Rank 1
answered on 16 Apr 2009, 09:07 AM
Thanks Guys, Its works. But i face another problem, that is there is 3 modal window and I want transparent background for a specific window. Is there any way?

Thanks again guys.

Fakhrul
0
Georgi Tunev
Telerik team
answered on 16 Apr 2009, 10:41 AM
Hello Fakhrul,

This is not possible to do with CSS - the style is common for all RadWindows on the page. If you want to have different modal backgrounds for different windows, I suggest not to use the Modal property but to implement a custom logic that will put your own modal image / div behind the RadWindow. You can use the OnClientShow and OnClientClose eventhandlers of the RadWindow to show / hide your custom modal layer.


Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Fakhrul
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Georgi Tunev
Telerik team
Fakhrul
Top achievements
Rank 1
Share this question
or