11 Answers, 1 is accepted
To achieve this you need to modify the built-in skin as shown in the documentation (RadControls 'Prometheus' Fundamentals / Controlling Visual Appearance /Modifying built-in skins) and set the opacity of the RadWindow as desired.
I hope this information will get you started.
Greetings,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
http://www.telerik.com/help/aspnet-ajax/controllingvisualappearance.html
but I couldn't find the answer. Can you guide me on how to disable the window transparency on the ASP.NET AJAX windows?
Thanks,
Matt
Thank you for reporting the problem with the link - I will fix it right away.
As for setting the transparency of the RadWIndow, you need to use a custom skin (as explained in the Controlling Visual Appearance section of the documentation) and override the styles for the inactive window and the toolbar's transparency.
For your convenience I prepared a small sample that shows how to achieve this - please check the /*TELERIK CHANGED*/ sections at the end of the 2 CSS files.
Best wishes,
Georgi Tunev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Hi
I tried the Css included in the sample project, but it did not work. Then I made the following addition to it:
/*TELERIK MODIFIED*/
/* inactive window settings */
div.TelerikModalOverlay,
div.radwindow.inactivewindow td.corner,
div.radwindow.inactivewindow td.titlebar,
div.radwindow.inactivewindow td.footercenter
{
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100) !important;
opacity: 1 !important; -moz-opacity: 1 !important;
}
This css now gives the expected results, the background is a solid gray when a popup is displayed. It returns to normal display mode when popup is closed.
I am using Telerik controls v 2008.1.515.35
Do let me know if anyone else also could not get the sample css to work and the modified css solved it.
~Shuchi
This will sure help you as I am doing the same for my pages.
Arun.K.S
Thanks,
Matt
In general this is possible - just make sure that you enter the properties with the !important directive so they would override the default skin.
Regards,
Georgi Tunev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I have the problem in radwindow.
I have a parent page.
From theparent page, I call a child page using radwindow.
In child page, I do some functionality. After finished the work. I show the message using javascript. If the user click ok, I need to close the child page(radwindow). But it is not closed. I tried all the posibilities which are discussed in our forum.
Please help .
Please have a look into the sample code snippet to achieve your scenario.
ASPX:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"></telerik:RadWindowManager><telerik:RadButton ID="RadButton1" runat="server" Text="OpenWndow" AutoPostBack="false" OnClientClicked="OpenWindow"></telerik:RadButton><telerik:RadWindow ID="RadWindow1" runat="server"> <ContentTemplate> <telerik:RadTextBox ID="RadTextBox1" runat="server" Label="Name"> </telerik:RadTextBox> <br /> <telerik:RadTextBox ID="RadTextBox2" runat="server" TextMode="Password" Label="Password"> </telerik:RadTextBox> <telerik:RadButton ID="RadButton2" runat="server" Text="Finish" AutoPostBack="false" OnClientClicked="ShowMessage"> </telerik:RadButton> </ContentTemplate></telerik:RadWindow>JavaScript:
<script type="text/javascript"> Telerik.Web.UI.RadWindowUtils.Localization = { "OK": "Yes", "Cancel": "No" }; function OpenWindow(sender, args) { var window = $find("<%=RadWindow1.ClientID %>"); window.show(); } function ShowMessage(sender, args) { radconfirm('Are you finished?', confirmCallBackFn, 330, 180, null, 'Confirm', null); } function confirmCallBackFn(arg) { if (arg == true) { var window = $find("<%=RadWindow1.ClientID %>"); window.hide(); } }</script>Hope this will helps you.
Thanks,
Shinu.