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

Document Manager does not sort documents

4 Answers 71 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 21 Jul 2011, 10:58 AM

I'm using RadHtmlField from Telerik.SharePoint.FieldEditor in my SharePoint site and make use of the Document Manager. When I've uploaded documents and then wish to select one, the list is not sorted. Should I add something to my ConfigFile.xml? It currently looks like this:

<configuration>
  <property name="AllowThumbGeneration">True</property>
  <property name="ConvertToXhtml">True</property>
  <property name="EnableDocking">False</property>
  <property name="ShowHtmlMode">False</property>
  <property name="ShowPreviewMode">False</property>
  <property name="StripAbsoluteAnchorPaths">true</property>
  <property name="StripAbsoluteImagesPaths">true</property>
  <property name="ToolbarMode">ShowOnFocus</property>
  <property name="ToolsWidth">100px</property>
  <property name="DocumentsPaths">
 <item>/Documents</item>
  </property>
  <property name="MaxDocumentSize">
 <item>20971520</item>
  </property>
  <property name="ImagesPaths">
    <item>PublishingImages</item>
    <item>/SiteCollectionImages</item>
  </property>

</configuration>

4 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 22 Jul 2011, 03:37 PM
Hello Martin,

Review the following online help article: ExternalDialogsPath property. In it you will find information how to modify the RadFileExplorer in the editor's dialogs. In addition review the following KB article: Sorting RadFileExplorer items by name



Greetings,
Stanimir
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Martin
Top achievements
Rank 1
answered on 26 Jul 2011, 09:51 AM
Thanks for the reply. I am trying the links you provided but not having much luck. There is a link in the details which doesn't work:  http://www.telerik.com/help/aspnet-ajax/customizingimagedialog.html

I think this is important and may reveal why I can't get it to work. Can you tell me what the link says about MOSS setup of ExternalDialogsPath?

Martin
0
Martin
Top achievements
Rank 1
answered on 26 Jul 2011, 10:27 AM
Following on from my last post, I have been able to change my configFile.xml to use the EditorDialogs folder in the Resources folder:

<property name="ExternalDialogsPath">/_wpresources/RadEditorSharePoint/5.8.7.0__1f131a624888eeed/Resources/EditorDialogs</property>

If I change the FileBrowser.ascx file to hide the New Folder button it works, so I can modify this file successfully.
I have added the js function to the MOSSEditorTool.js and can see it in the browser  (i.e. it's not cached). But changing the FileBrowser.ascx to add

OnClientLoad="OnClientLoad"

stops the doc manager from working - all buttons seem disabled.
What am I  doing wrong?

 

 


0
Stanimir
Telerik team
answered on 26 Jul 2011, 01:53 PM
Hi Martin,

Here is how to modify the FileBrowser.ascx file:

1. Set the OnClientLoad property of telerik:RadFileExplorer with ID="RadFileExplorer1" so it looks like:
<telerik:RadFileExplorer ID="RadFileExplorer1" Height="450px" Width="400px" TreePaneWidth="150px" runat="Server" EnableOpenFile="false" AllowPaging="true" PageSize="100" OnClientLoad="OnClientLoad"/>

5. Add the following javascript method in the source.
function OnClientLoad(oExplorer, args)
{
    var oGrid = oExplorer.get_grid();
    var masterTableView = oGrid.get_masterTableView();
    masterTableView.sort("Name ASC");
}


Greetings,
Stanimir
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
WebParts for SharePoint
Asked by
Martin
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Martin
Top achievements
Rank 1
Share this question
or