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

Multiple Content Provider Types

1 Answer 50 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Cameron
Top achievements
Rank 1
Cameron asked on 13 Apr 2012, 11:05 PM
Hi,

This is more a question than it is a request for help.

I've recently discovered that filenames being uploaded might have non-printable characters in their names.
As such I've written a FixInvalidFileNameProvider to handle that.
And so I've got this in my code:

  • radeditor.DocumentManager.ContentProviderTypeName = typeof(FixInvalidFileNameProvider).AssemblyQualifiedName;
  • radeditor.ImageManager.ContentProviderTypeName = typeof(FixInvalidFileNameProvider).AssemblyQualifiedName;

That's all good and fine.

However, we were also going to have another provider to handle some other function as this:
  • radeditor.DocumentManager.ContentProviderTypeName = typeof(FileSystemContentProvider).AssemblyQualifiedName;
  • radeditor.ImageManager.ContentProviderTypeName = typeof(FileSystemContentProvider).AssemblyQualifiedName;

So, is this valid?
Would the FileSystemContentProvider replace the FixInvalidFileNameProvider?
Can there be more than one ContentProviderTypeName for the DocumentManager and ImageManager of the RadEditor?

Thanks,
Cameron



1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 18 Apr 2012, 01:18 PM
Hi Cameron,

It is not possible to use two different content providers, but you can move the functionality of the first to the other one.

Kind 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.
Tags
Editor
Asked by
Cameron
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or