Document Manager does not take to input metadata for document library

3 posts, 0 answers
  1. A B
    A B avatar
    2 posts
    Member since:
    Feb 2010

    Posted 29 Nov 2011 Link to this post

    I have a document library "DOCLibA", in my sharepoint 2010 site which also collects some metadata for the document like category and country associated(using EditForm.aspx). I have another list "listB", in which I want users to add links to documents from above document library "DOCLibA".

    On the "listB" NewForm I have a telerik radeditor with document manager in the toolbar. This document manager correctly uploads any new documents in the "DOCLibA",but it doesnot ask for the metadata like category and country.

    Is there a way to achive this functionality using Document Manager? Sharepoint Asset picker works correctly for this as the upload link takes you to the doc lib's Upload.aspx.

  2. Rumen
    Rumen avatar
    13233 posts

    Posted 01 Dec 2011 Link to this post

    Hello A B,

    The requested functionality is not supported by the FileBrowser dialogs of RadEditor for SharePoint out-of-the box.

    If you would like you can implement it yourself by modifying the FileBrowser dialog of RadEditor as shown in this forum thread: Custom Upload File Fields.

    Since it is not possible to execute codebehind code in SharePoint you will need to build an user control in a DLL and register it in the GAC in a similar way as it is shown in this video: It demonstrates how to add custom columns to the Grid control in the FileBrowser dialogs by registering a DLL in the GAC:

    Here are the steps to proceed:
    1. Create a web application containing the UserControl.ascx file
    2. Copy the server code that adds new columns to the Grid control in the codebehind and build the application.
    3. Register the produced web application assembly file in the GAG (in our case its name is DateTimeColumn.dll)
    4. After that copy the FileBrowser.ascx file in the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\\Resources\EditorDialogs folder.
    5. Open the FileBrowser.ascx file and register the DateTimeColumn control in it:

    <%@ Register Assembly="DateTimeColumn, Version=, Culture=neutral, PublicKeyToken=232e4f3070fbebe9" Namespace="DateTimeColumn" TagPrefix="custom" %>

    <telerik:RadFileExplorer ...></telerik:RadFileExplorer>
    <custom:UserControl id="DateTime" runat="server"></custom:UserControl>

    6. Add a Safe control for the new control in the C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config file:

    <SafeControl Assembly="DateTimeColumn, Version=, Culture=neutral, PublicKeyToken=232e4f3070fbebe9" Namespace="DateTimeColumn" TypeName="*" Safe="True" SafeAgainstScript="False" />

    Here are the files:
    Once the category and country fields in the Upload dialog are added, it is up to Developer to customize the FileBrowserContent provider of the FileExplorer control to save these data to the SharePoint database and read them after that. We do not support this implementation as it is not part of the advertised RadEditor for SharePoint functionality.

    Best regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. A B
    A B avatar
    2 posts
    Member since:
    Feb 2010

    Posted 12 Dec 2011 Link to this post

    Thanks Rumen!
    Right now,the MOSSLinkmanger suffices my requirement.
Back to Top