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

Upload xml files using document manager

1 Answer 90 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bader
Top achievements
Rank 1
Bader asked on 25 Jul 2011, 06:40 PM
Hello,

How can I upload xml file using the RadEditor document manager.
Here is my code:
<telerik:RadEditor runat="server" ID="CntntRadEditor" Height="500px" Width="100%" style="z-index:1000;" Content='<%# DataBinder.Eval( Container, "DataItem.Cntnt") %>' ToolsFile="~/Common/Controls/RadEditor/xml/CustomFullSetOfToolsForSecureTables.xml">
                           <Modules>
                               <telerik:EditorModule Visible="false" />
                           </Modules>
                           <ImageManager ViewPaths="~/P/Design/Contents/Guide" UploadPaths="~/P/Design/Contents/Guide" DeletePaths="~/P/Design/Contents/Guide" />
                           <DocumentManager ViewPaths="~/P/Design/Contents/Guide" UploadPaths="~/P/Design/Contents/Guide" DeletePaths="~/P/Design/Contents/Guide" />
                       </telerik:RadEditor>

Please, I need your help in order to solve this problem.
It is appreciated to send me the modified code.

Regards,
Bader

1 Answer, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 28 Jul 2011, 03:49 PM
Hi Bader,

In order to modify the allowed filetypes for DocumentManager you need to set its SearchPatterns, e.g.:
<telerik:RadEditor runat="server" ID="CntntRadEditor" Height="500px" Width="100%"
    Style="z-index: 1000;" Content='<%# DataBinder.Eval( Container, "DataItem.Cntnt") %>'
    ToolsFile="~/Common/Controls/RadEditor/xml/CustomFullSetOfToolsForSecureTables.xml">
    <Modules>
        <telerik:EditorModule Visible="false" />
    </Modules>
    <ImageManager ViewPaths="~/P/Design/Contents/Guide" UploadPaths="~/P/Design/Contents/Guide"
        DeletePaths="~/P/Design/Contents/Guide" />
    <DocumentManager ViewPaths="~/P/Design/Contents/Guide" UploadPaths="~/P/Design/Contents/Guide"
        DeletePaths="~/P/Design/Contents/Guide" SearchPatterns="*.doc,*.txt,*.docx,*.xls,*.xlsx,*.pdf,*.xml" />
</telerik:RadEditor>


Best wishes,
Dobromir
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Editor
Asked by
Bader
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or