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

Document Manager does not take to input metadata for document library

2 Answers 137 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
A B
Top achievements
Rank 1
A B asked on 29 Nov 2011, 02:10 PM

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 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Dec 2011, 03:44 PM
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: http://screencast.com/t/AjxepjXi. 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\6.1.7.0__1f131a624888eeed\Resources\EditorDialogs folder.
5. Open the FileBrowser.ascx file and register the DateTimeColumn control in it:

<%@ Register Assembly="DateTimeColumn, Version=1.0.0.0, 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=1.0.0.0, 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,
Rumen
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
0
A B
Top achievements
Rank 1
answered on 12 Dec 2011, 09:54 AM
Thanks Rumen!
Right now,the MOSSLinkmanger suffices my requirement.
Tags
Sharepoint Integration
Asked by
A B
Top achievements
Rank 1
Answers by
Rumen
Telerik team
A B
Top achievements
Rank 1
Share this question
or