Dobromir

Please find a detailed example of how to add a custom column to the Grid component of the RadFileExplorer in the following Live Demo:FileExplorer / Add custom columns

Information regarding the last modification made to a file / folder is available in the LastWriteTime property of the FileInfo/DirectoryInfo object.

Sincerely yours,
Dobromir
the Telerik team

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items

Dean

Albert Shenker

I appreciate that the FileExplorer control can be modified to include custom columns, but why is "Date Modified", which is a default column found on every real-world file explorer I have ever seen, not one of the built-in columns in FileExplorer, like file size is? In other words, why must developers implement a Custom FileSystemContentPrivder and Custom GridTemplates just to provide this standard column?

Rumen

The "Dete Modified" columns is not built-in because it will increase the size of the FileBrowser dialogs of RadEditor. That is why we provided the ability to add custom columns to the FileBrowser control for the users that want to customize the control.

Nevertheless, if more users request this column to be part of the FileExplorer we will consider its addition to the control.

All the best,
Rumen
the Telerik team

Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

Anu

We use radeditor in our sharepoint 2010 environment. I am trying to implement a similar functionality whereby the user can see the 'Dat Created' or 'Date Modified' in the radfileexplorer. Could someone kindly help me to implement this. The example link in the above post is not working either.

Anu

Thanks for your reply. I managed to get these links. However, I am struggling with the implementation since I am trying to make changes using javascript in the FileBrowser.ascx file. A bit lost here.

We have enabled telerik feature at site level so that RadEditor opens up automatically when a user tries to Edit a list item. In this list item, user has an option to click the 'Image manager' icon, which opens up the radfileexplorer. Since this is enabled as a site feature, I am not sure where and how I should make these modifications.

In order to integrate this solution in SharePoint you should do the following:
1) See how to register the external dialogs of RadEditor for SharePoint: ExternalDialogsPath property.
2) To be able to reference the UserControl.ascx in the FileBrowser.ascx dialog, it should be build as an assembly which is registered in the GAC (Global Assembly Cache). You should create a project which contains the UserControl.ascx control and build it. After that add the produced assembly to your GAC.
3) The final step is to add a SafeControl for this assembly in the web.config file of the SharePoint application (inetpub\wwwroot\wss\VirtualDirectories\80\web.config).

3. I have a sharepoint project in visual studio. Added the user control to this project so that it get deployed in the 'Control Templates' folder of sharepoint.
4. The project is deployed and the safe controls are added to the web.config file.

5. To register the custom user control in the filebrowser.ascx, the following lines are added to the filebrowser.ascx

Unfortunately, I am getting runtime error when I click on the 'Image Manager' of rad editor. Inspite of chaning the web.config (sharepoint site) file's CustomErrors tag, I cannot see details of this error message.

I know I am nearly there. Would appreciate some more help from you to complete this. Please do reply to this when you get a chance.

Rumen

Could you please open a support ticket and send your ConfigFile.xml, ListConfigfile.xml, UserControl.ascx, FileBrowser.ascx, the web.config and the assembly file so that I can examine them?

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

Birol

Hi Rumen
Your sample project works very well.
But When I convert the project to newer version of Telerik Rad Contols (Telerik.Web.UI, Version=2012.2.522.40), I get an error about null of grid control in FileExplorer.

rfe.Grid.Columns.Add(gridTemplateColumn1)

Grid is null when the page load event occured. But all of other components in it are created.

your sincelery.

Dobromir

You may experience this behavior if the explorer is configured to display the items as thumbnails (ExplorerMode="Thumbnails"). In such configuration the Grid property returns null because the grid component is not available. If this is the case, you should check if the Grid is not Null and then add the custom column.

All the best,
Dobromir
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.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.