This is a migrated thread and some comments may be shown as answers.
Disable drag for popup windows
4 Answers 31 Views
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 04 Dec 2009, 02:09 PM
Is there a way to disable the drag functionality on the popup windows used for uploads, adding new folders, and renaming items?

4 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 04 Dec 2009, 02:57 PM
Hi Anthony,

You need to use this approach in order to achieve the desired result:

  • RadFileExplorer's declaration:
    <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Height="400px" Hidth="1000px"
        OnClientLoad="OnExplorerLoad">
        <Configuration ViewPaths="~/ROOT/" DeletePaths="~/ROOT/" UploadPaths="~/ROOT/" />
    </telerik:RadFileExplorer>
  • The OnExplorerLoad handler:
    <script type="text/javascript">
        function OnExplorerLoad(oExplorer, args)
        {
            var oWindowManager = oExplorer.get_windowManager();
            var newBehavior = (oWindowManager.get_behaviors() ^ Telerik.Web.UI.WindowBehaviors.Move);
            oWindowManager.set_behaviors(newBehavior)
        }
    </script>

I hope this helps.

All the best,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Anthony
Top achievements
Rank 1
answered on 04 Dec 2009, 03:20 PM
Thank you Fiko that worked great. Also is it possible to add custom text to the upload window?
0
Fiko
Telerik team
answered on 07 Dec 2009, 02:03 PM
Hello Anthony,

For your convenience I have attached a working project to thread. Could you please check it and let me know whether it fits your requirements?

I hope this helps.

All the best,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Anthony
Top achievements
Rank 1
answered on 07 Dec 2009, 06:00 PM
Thank you Fiko,

That is exactly what I was looking for.
Asked by
Anthony
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Anthony
Top achievements
Rank 1
Share this question
or