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

Radwindow as a splash screen

3 Answers 146 Views
Window
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 16 Sep 2009, 07:19 AM
Hi,

I want to configure Radwindow as a clickable splash screen.

I have

<telerik:RadWindow ID="RadWindow1" VisibleOnPageLoad="true" Modal="True" NavigateUrl="~/images/splash.png" runat="server" VisibleStatusBar="False" VisibleTitleBar="False" Width="650" Height="500">        
</telerik:RadWindow>

Some questions:
Is there a way to make the whole Radwindow object clickable?
When applying VisibleTitleBar="False the top part of the Radwindow has no corner images. Must I use custom skin to alter this?





3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 18 Sep 2009, 03:20 PM
Hello Fit2Page,

You do not need to use a custom skin. You can hide all elements around the RadWindow object by using this code :
<style type="text/css"
    .rwTitleRow, 
    .rwCorner.rwBodyRight, 
    .rwCorner.rwBodyLeft, 
    .rwCorner.rwFooterLeft, 
    .rwFooterCenter, 
    .rwCorner.rwFooterRight, 
    .rwStatusBarRow 
    { 
        visibilityhidden
    } 
</style> 

The code needs to be added in the head tag of the page that contains the RadWindow's declaration(see the attached project).
I hope this helps.

Kind regards,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 21 Sep 2009, 06:45 AM
Hi Fiko,

This style amendments are clear....

But is it possible to make the RadWindow clickable?
The way we did it with ajaxcontroltoolkit in the old days :-)

<asp:Panel id="WitVlak" runat="server" Style="display: none" CssClass="modalPopup">
<asp:ImageButton onclientclick="txtUsername.focus(); return false;" ID="OkButton" runat="server" ImageUrl="~/images/splash.png" />
</asp:Panel>

<ajaxToolkit:ModalPopupExtender ID="mpe_Start" runat="server"
TargetControlID="LinkButtonHidden"
PopupControlID="WitVlak"
BackgroundCssClass="modalBackground"
DropShadow="false"
OkControlID="OkButton"
/>
<asp:LinkButton ID="LinkButtonHidden" runat="server" />
0
Accepted
Fiko
Telerik team
answered on 23 Sep 2009, 02:52 PM
Hi ,

After applying the CSS styles from my previous response, then the RadWidnow's content page will appear only. This means that you can declare a handler and catch the click events on that page. For example this code will catch any click on the content document :

<script type="text/javascript"
    document.onclick = function() 
    { 
        alert("Popup1.aspx is clicked"); 
    } 
</script> 

Once again, add this code to the head tag of the page that is opened inside the RadWindow and an alert box will appear every time you click the RadWindow.
For your convenience I have attached the reworked project from my previous response.
I hope this helps.

Regards,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Fiko
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or