Document Manager does not sort documents

5 posts, 0 answers
  1. Martin
    Martin avatar
    4 posts
    Member since:
    Oct 2012

    Posted 21 Jul 2011 Link to this post

    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>

  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 22 Jul 2011 Link to this post

    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 >>


  3. Martin
    Martin avatar
    4 posts
    Member since:
    Oct 2012

    Posted 26 Jul 2011 Link to this post

    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
  4. Martin
    Martin avatar
    4 posts
    Member since:
    Oct 2012

    Posted 26 Jul 2011 Link to this post

    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?

     

     


  5. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 26 Jul 2011 Link to this post

    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 >>

Back to Top