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

Problem with the movement of Custom alert/confirm dialog

2 Answers 53 Views
Window
This is a migrated thread and some comments may be shown as answers.
Divya
Top achievements
Rank 1
Divya asked on 10 Jan 2011, 01:09 PM
Hi,

I have defined a custom template for alert and confirm dialogs. But am not able to move the dialogs even after setting Behavior property to "Move" for RadWindowManager.

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableEmbeddedSkins="False" Skin="SendToENv2" Behavior="Default" InitialBehavior="None" Behaviors="Maximize,Minimize,Move,Resize">
<AlertTemplate >
    <div class="rwDialogPopup radalert"> 
    <div class="rwDialogText"> {1} </div>
    <div>
    <a id="send2Alert" onclick="$find('{0}').close();" onkeypress="$find('{0}').close();" class="rwPopupButton" href="javascript:void(0);">
    <span class="rwOuterSpan">
    <span class="rwInnerSpan">##LOC[OK]##</span>
    </span>
    </a>
</div>
</div>
</AlertTemplate>
</telerik:RadWindowManager>

 

I have even tried with the code present in the below link posted by one of the telerik member . There also i am facing the same issue. No customized styles have been explcitily defined by me. Code file is being attached. - Code.jpg
http://www.telerik.com/community/forums/aspnet-ajax/window/templates-for-confirm-dialog.aspx

1 more point i noticed here is that the issue doesn't happens with Tereik RadControls for ASP.NET AJAX Q2 2010. Am currently using Tereik  RadControls for ASP.NET AJAX Q2 2009. The issue occurs in the 2009 version. Please let know whether this is the limitation for the 2009 version or should i need to explicitly provide any customizations in order to make the confirm/alert dialogs move( along with the movement of cursor)

Thanks,
Divya

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 13 Jan 2011, 12:24 PM
Hello Divya,

This feature is implemented in a later version of the control (than the one that you have). With your version, you should set the behaviors manually:

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadWindowManager ID="RWM1" runat="server">
</telerik:RadWindowManager>
<button onclick="showAlert(); return false;">
    radalert</button>
<script type="text/javascript">
    function showAlert()
    {
        var oWnd = radalert("alert message");
        oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);
    }
</script>
</form>


Regards,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Divya
Top achievements
Rank 1
answered on 14 Jan 2011, 10:27 AM
Thanks Georgi. Its working now with the code provided by you.

Regards,
Divya
Tags
Window
Asked by
Divya
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Divya
Top achievements
Rank 1
Share this question
or