Disable drag for popup windows

5 posts, 0 answers
  1. Anthony
    Anthony avatar
    14 posts
    Member since:
    Apr 2009

    Posted 04 Dec 2009 Link to this post

    Is there a way to disable the drag functionality on the popup windows used for uploads, adding new folders, and renaming items?
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 04 Dec 2009 Link to this post

    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.
  3. Anthony
    Anthony avatar
    14 posts
    Member since:
    Apr 2009

    Posted 04 Dec 2009 Link to this post

    Thank you Fiko that worked great. Also is it possible to add custom text to the upload window?
  4. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 07 Dec 2009 Link to this post

    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.
  5. Anthony
    Anthony avatar
    14 posts
    Member since:
    Apr 2009

    Posted 07 Dec 2009 Link to this post

    Thank you Fiko,

    That is exactly what I was looking for.
Back to Top