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

How do you use the ALERTTEMPLATE

6 Answers 135 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 16 Oct 2008, 06:28 PM
Hi..
I need to add an AlertTemplate to add an ALERT()
that displays a modal window and stops  program execution from the code behind  - until the Alert is clicked.
How do I do this?
Thanks!

6 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Oct 2008, 09:56 AM
Hello Jon,

You can go through the folowing online demo link which demonsatrates how to get a modal alert using RadWindow.
Alert, Prompt, Confirm

Thanks
Princy.
0
Jon
Top achievements
Rank 1
answered on 17 Oct 2008, 12:32 PM

Hi..
This does not solve my problem.
I need to show the modal window and then continue with a redirect , all from code behind.  How can I do this?  Here is my code.. Thanks!!

 

 

this.RadAjaxManager.ResponseScripts.Add(@"Sys.Application.add_load(function()

 

{radalert('Constituent Information Added!', 250, 100);})"

 

);

 

 

// Redirect to Pending......

 

 

 

 

Response.Redirect(

"~/pages/ProcessPendingCorrespondence.aspx");

 

0
Georgi Tunev
Telerik team
answered on 20 Oct 2008, 10:18 AM
Hello Jon,

Please check your other forum thread on the same subject for a sample that shows how to implement the desired logic with radalert:
http://www.telerik.com/community/forums/thread/b311D-bgmagc.aspx



All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
mayank
Top achievements
Rank 1
answered on 21 Nov 2008, 10:50 AM
how can i change the button text of radconfirm()................

i want to show somthing else rather than "ok" and "cancle"....
is it possible?

0
Shinu
Top achievements
Rank 2
answered on 21 Nov 2008, 12:37 PM
Hi Mayank,

You can set the Ok and Cancel button text by changing the localization strings of the RadWindow "Prometheus" control by using the following Javascript code that should be placed after the RadWindow / RadWindowManager declaration.

Telerik.Web.UI.RadWindowUtils.Localization =    
{   
    "Close" : "Close",   
    "Minimize" : "Minimize",   
    "Maximize" : "Maximize",   
    "Reload" : "Reload",   
    "PinOn" : "Pin on",   
    "PinOff" : "Pin off",   
    "Restore" : "Restore",   
    "OK" : "OK",   
    "Cancel" : "Cancel",   
    "Yes" : "Yes",   
    "No" : "No"     
};  

Thanks,
Shinu.


0
mayank
Top achievements
Rank 1
answered on 22 Nov 2008, 09:52 AM
Thanks shinu,

I have already solve my problem by using confirmTemplate...
my code is as followes..



<

 

telerik:radwindowmanager runat="server" id="Singleton" >

 

 

<ConfirmTemplate>

 

 

<DIV id="RadWindowManager1_confirmtemplate">

 

<

 

div class="windowpopup radconfirm">

 

<

 

div class="dialogtext"> {1} </div>

 

<

 

div>

 

<

 

a onclick="$find('{0}').callBack(true);"

 

class

 

="radwindowbutton"

 

href

 

="javascript:void(0);" >

 

<

 

span class="outerspan">

 

<

 

span class="innerspan">MyOk</span>

 

</

 

span>

 

</

 

a>

 

<

 

a onclick="$find('{0}').callBack(false);"

 

class

 

="radwindowbutton"

 

href

 

="javascript:void(0);">

 

<

 

span class="outerspan">

 

<

 

span class="innerspan">MyCancle</span>

 

</

 

span>

 

</

 

a>

 

</

 

div>

 

</

 

div>

 

</

 

DIV>

 

 

</ConfirmTemplate>

 

 

<Windows>

 

 

<telerik:RadWindow runat="server" ID="DialogWindow" NavigateUrl="confirmPopUp.aspx" Modal="true" DestroyOnClose="true"></telerik:RadWindow>

 

 

</Windows>

 

 

</telerik:radwindowmanager>

But, thanks a lot, for your reply....

Regards,
Mayank Kumar

 

Tags
Window
Asked by
Jon
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jon
Top achievements
Rank 1
Georgi Tunev
Telerik team
mayank
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or