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

Prevent Draggable option for RadAlert, RadConfirm and RadPrompt of the RadWindowManager

2 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Siva
Top achievements
Rank 1
Siva asked on 23 Aug 2013, 10:12 AM
I am using the predefined dialogs (radalert, radconfirm and radprompt) from the server methods RadAlert, RadConfirm and RadPrompt of the RadWindowManager.It is possible for the user to move the dialog. Is there any way to prevent the Draggable/Moving option for the server methods RadAlert, RadConfirm and RadPrompt of the RadWindowManager.

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 23 Aug 2013, 02:59 PM
Hi Siva,

The dialogs have their own predefined set of behaviors, but a few lines of JavaScript can do this:
function OnClientShow(sender, args)
{
    if (sender._isPredefined)
    {
        sender.set_behaviors(sender.get_behaviors() - Telerik.Web.UI.WindowBehaviors.Move);
    }
}

where this function handles the OnClientShow event of their RadWindowManager.

Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Siva
Top achievements
Rank 1
answered on 26 Aug 2013, 06:32 AM
Thanks Marin Bratanov.
Tags
General Discussions
Asked by
Siva
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Siva
Top achievements
Rank 1
Share this question
or