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

Can we produce alert sounds using radconfirm or radalert ?

3 Answers 46 Views
Window
This is a migrated thread and some comments may be shown as answers.
saravanan k
Top achievements
Rank 1
saravanan k asked on 30 Jul 2010, 06:46 AM
Hi Telerik Team,

                       I have used radconfirm in my application. Right now when that confirm box appears the system doesn't produce any alert tones similar to a simple javascript alert or confirm. The end user is very insisting on getting notified when this boxes appear. Can you help in this regards, is there any way?.

i have opened the radconfirm by this script,

radconfirm(confirmString, confirmCallBackFn, 400, 150, "", "Window Title");

Regards,
Saravanan K

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 30 Jul 2010, 07:16 AM
Hi Saravanan,

Currently playing sounds is out of the scope of RadWindow functionality. You can play sounds manually when the RadWindow popups show. Here is some more information:

http://webdesign.about.com/od/sound/a/play_sound_oncl.htm

Use the RadWindowManager's OnClientShow handler.

<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
<head runat="server">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>RadControls</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" OnClientShow="playSound" />
 
<asp:Button ID="Button1" runat="server" Text="RadConfirm" OnClientClick="return popupAlert()" />
 
<script type="text/javascript">
 
function popupAlert()
{
    radconfirm("confirm text", confirmFunc, 300, 100, "", "Win Title");
    return false;
}
 
function playSound(sender, args)
{
    alert("play sound here");
}
 
function confirmFunc(returnValue)
{
    alert("confirm function");
}
 
</script>
 
</form>
</body>
</html>


Regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
saravanan k
Top achievements
Rank 1
answered on 04 Aug 2010, 07:26 AM
Can we some how 'link it to default windows sounds ' as when  an alert popups.So that there is no need to embed the sound into the Rad Window to play the sound
0
Georgi Tunev
Telerik team
answered on 05 Aug 2010, 11:06 AM
Hi saravanan k,

Please check your other forum thread on the same subject:
http://www.telerik.com/community/forums/aspnet-ajax/window/alert-tones-in-radconfirm-or-radalert.aspx


Greetings,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
saravanan k
Top achievements
Rank 1
Answers by
Dimo
Telerik team
saravanan k
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or