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

How to move RadWindow on Mouse left button click

2 Answers 207 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 07 Aug 2012, 03:41 PM

How to move RadWindow  on Mouse left button click

I have following code to open RadWindow

<telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
    Modal="false"    ReloadOnShow="true" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Close" >
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>



   <script type="text/javascript">
        function openRadWindow() {
            try {
                var oWnd1 = radopen("NonOptimizedGraph.aspx", "RadWindow1"); //Pass parameter using URL    
                oWnd1.setSize(800,600);
                oWnd1.centre();
                    return false;
            }
            catch (err) {
                //Handle errors here
            }
        }
       
    </script>

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 09 Aug 2012, 09:48 AM
Hello Dave,

You need to enable the Move behavior of the RadWindow: http://www.telerik.com/help/aspnet-ajax/window-behavior-user-interaction-with-window.html, i.e.:
<telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
     Modal="false"    ReloadOnShow="true" runat="server" EnableShadow="true">
         <Windows>
             <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Close, Move" >
             </telerik:RadWindow>
         </Windows>
     </telerik:RadWindowManager>



Regards,
Marin Bratanov
the Telerik team
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 their blog feed now.
0
Dave
Top achievements
Rank 1
answered on 11 Aug 2012, 06:50 AM
Thanks,
This worked for me
Tags
Window
Asked by
Dave
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Dave
Top achievements
Rank 1
Share this question
or