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

3 posts, 0 answers
  1. Siva
    Siva avatar
    5 posts
    Member since:
    Aug 2013

    Posted 23 Aug 2013 Link to this post

    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. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4760 posts

    Posted 23 Aug 2013 Link to this post

    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.
  3. Siva
    Siva avatar
    5 posts
    Member since:
    Aug 2013

    Posted 26 Aug 2013 Link to this post

    Thanks Marin Bratanov.
Back to Top