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

Customizing the RAD Alert

1 Answer 64 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Bharathwajan Venkatanarayanan
Top achievements
Rank 1
Bharathwajan Venkatanarayanan asked on 06 Oct 2009, 07:39 AM
Hi,
after a successful data update we need to display a message to user "updated Successfully". On click of OK in the alert,
we need to redirect to a different page.we are trying to achieve the same in rad alert.
 Requirement1:
the alert ok button is not causing a postback
Requirement2:
We dont need the close button on the top right corner of the rad alert.
or is there any workaround.
Thanks,
Bharath

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Oct 2009, 11:44 AM
Hi Bharathwajan,

Have you tried redirecting the page from client-side after closing the RadAlert?
 
<script type="text/javascript"
    function callAlert() { 
        //get a reference to the radalert object  
        var oWnd = radalert("Update successfull"); 
        //add a closing function to it  
        oWnd.add_close(closingFn); 
    } 
    function closingFn() { 
        window.location = "http://www.google.com"
    }  
</script> 

For hiding the close button, you could add the following CSS on the page.
CSS:
 
<style type="text/css"
    .RadWindow .rwCloseButton 
    { 
        backgroundnone !important; 
    } 
    .RadWindow .rwCloseButton:hover 
    { 
        backgroundnone !important; 
    } 
</style> 

-Shinu.
Tags
Ajax
Asked by
Bharathwajan Venkatanarayanan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or