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

How to Use DocumentManager in RadEditor ?

13 Answers 382 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Prince M. Premnath
Top achievements
Rank 2
Prince M. Premnath asked on 03 Dec 2009, 11:34 AM
Hello all ,

 Am new to trlerik controls 2009 , am juz wondering how to use DocumentManager in RadEditor , How to Customize ?

Prince

13 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Dec 2009, 01:04 PM
Hi Prince,

The "Document Manager" allows you to insert hyperlinks to document files stored on the web server by simply selecting them from a list. The dialog is similar to the "Image Manager" and allows you to browse, upload, and delete documents.
Please, see the following articles about the Document Manager configuration and built-in dialogs configuration:
Documents and ExternalDialogsPath property.

Kind regards,
Rumen
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
Prince M. Premnath
Top achievements
Rank 2
answered on 03 Dec 2009, 03:09 PM
Thanks for your reply Rumen !
 
 I got yet another question , i have configured my document server in separate Virtual Directory say 'Docs' how to configure ViewPaths  to 'Docs' virtual directory ???


0
Rumen
Telerik team
answered on 03 Dec 2009, 03:15 PM
Hi Prince,

The "Docs" virtual directory that has a physical path pointing outside of your web application should point to the root of your web application in IIS.

Please, see the following KB article: Uploading images to the server (upload tab is disabled).

Sincerely yours,
Rumen
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
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
answered on 28 Oct 2020, 09:12 AM

hello,

I am using Telerik R3 2020.3.915 with .Net FrameWork 3.5,In the Document Manager Buttons are disabled,Can you please help me out.

0
Rumen
Telerik team
answered on 28 Oct 2020, 10:14 AM

Hi Kumar,

Please check out this article which explains how to configure the Document Manager paths - Documents.

You can find more information on File Browser Dialogs Overview and Enforce Roles.

Using this sample code you can see whether your have granted the needed ASP.NET account rights to the viewpath and uploadpath folders - https://docs.telerik.com/devtools/aspnet-ajax/controls/fileexplorer/troubleshooting/common-issues#an-error-like--because-the-application-did-not-have-enough-permissions-occurs-only-in-a-production-environment-how-to-debug-the-issue

Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
answered on 28 Oct 2020, 10:24 AM

 <DocumentManager 
        ViewPaths="~/files/Uploads/Documents" 
        UploadPaths="~/files/Uploads/Documents" 
        DeletePaths="~/files/Uploads/Documents"
MaxUploadFileSize="51200000"
        SearchPatterns="*.doc,*.docx,*.xls,*.xlsx,*.ppt,*.pptx,*.pdf,*.zip,*.ics,*.vcf" />

 

In C# ,

     radEditor.DocumentManager.ViewPaths = EditorConfigValues.DocumentManager.ViewPaths;
            radEditor.DocumentManager.UploadPaths = EditorConfigValues.DocumentManager.UploadPaths;
            radEditor.DocumentManager.DeletePaths = EditorConfigValues.DocumentManager.DeletePaths;
            radEditor.DocumentManager.SearchPatterns = EditorConfigValues.DocumentManager.SearchPatterns;
            radEditor.DocumentManager.MaxUploadFileSize = EditorConfigValues.DocumentManager.MaxUploadFileSize;

 

 

But still getting same.

0
Rumen
Telerik team
answered on 28 Oct 2020, 01:33 PM

Hi Kumar,

I see that you are setting the paths twice - once inline and another time in the codebehind.

Please perform the following tests to troubleshoot the problem:

  • comment out the codebehind and test only with the inline declaration:

     <DocumentManager 
            ViewPaths="~/files/Uploads/Documents" 
            UploadPaths="~/files/Uploads/Documents" 
            DeletePaths="~/files/Uploads/Documents"
    MaxUploadFileSize="51200000"
            SearchPatterns="*.doc,*.docx,*.xls,*.xlsx,*.ppt,*.pptx,*.pdf,*.zip,*.ics,*.vcf" />
  • If the above does not work, remove the DocumentManager inline tag and test with the codebehind settings only:

         radEditor.DocumentManager.ViewPaths = EditorConfigValues.DocumentManager.ViewPaths;
                radEditor.DocumentManager.UploadPaths = EditorConfigValues.DocumentManager.UploadPaths;
                radEditor.DocumentManager.DeletePaths = EditorConfigValues.DocumentManager.DeletePaths;
                radEditor.DocumentManager.SearchPatterns = EditorConfigValues.DocumentManager.SearchPatterns;
                radEditor.DocumentManager.MaxUploadFileSize = EditorConfigValues.DocumentManager.MaxUploadFileSize;
  • If the dialog still does not load any folders, assign full control (rights) over the files/Uploads/Documents folders since this ensure that it is not a permissions problem.
  • If the above still does not make any progress, test by setting the paths to "~/", e.g.
     <DocumentManager 
            ViewPaths="~/" 
            UploadPaths="~/" 
            DeletePaths="~/"
    MaxUploadFileSize="51200000"
            SearchPatterns="*.doc,*.docx,*.xls,*.xlsx,*.ppt,*.pptx,*.pdf,*.zip,*.ics,*.vcf" />

    where ~/ means the root of the web application.

  • Last but not least test the code from the following article to check the permissions - An error like "... because the application did not have enough permissions..." occurs only in a production environment. How to debug the issue? and let me know for the result by providing a screenshot of what is happening when you run it.

 

Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
answered on 28 Oct 2020, 03:24 PM

Performed the following tests but still its Disabled.

 

0
Rumen
Telerik team
answered on 28 Oct 2020, 03:39 PM

Hi,

The following test does not use any Telerik controls but just checks the permissions:

Last but not least test the code from the following article to check the permissions - An error like "... because the application did not have enough permissions..." occurs only in a production environment. How to debug the issue? and let me know for the result by providing a screenshot of what is happening when you run it.

Can you send a screenshot of the result when testing the folder permissions?

Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
answered on 29 Oct 2020, 08:29 AM

Added in the Web.Config File , 

<httphandlers>

<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false" />

 

<handlers>

 <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />

<location path="Telerik.Web.UI.DialogHandler.aspx">
    <system.web>
        <authorization>
            <allow roles="TestUser"/>
        </authorization>
    </system.web>
</location>
<location path="Telerik.Web.UI.SpellCheckHandler.axd">
    <system.web>
        <authorization>
            <allow roles="TestUser"/>
        </authorization>
    </system.web>
</location>

But still all the buttons are disabled in Document Manager.

0
Rumen
Telerik team
answered on 29 Oct 2020, 12:58 PM

Hi Kumar,

Thank you for sharing the dialog handler declaration, but if the handler is not set or is overridden by URL rewritter you will get an error.

If it is not a secret what is the result of the test for permissions for the folders:

Last but not least test the code from the following article to check the permissions - An error like "... because the application did not have enough permissions..." occurs only in a production environment. How to debug the issue? and let me know for the result by providing a screenshot of what is happening when you run it.

For your convenience, I have also created and attached a sample runnable web application with enabled Documents manager with the code provided by you plus a short video demonstration. Please test it and use it as a base to troubleshoot your app.

Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
answered on 29 Oct 2020, 01:46 PM
Resolved thanks Rumen
0
Rumen
Telerik team
answered on 29 Oct 2020, 02:03 PM

You are welcome, Kumar! 

What was the reason for the problem?

 

Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Editor
Asked by
Prince M. Premnath
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Prince M. Premnath
Top achievements
Rank 2
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or