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

Custom Image and File Dialog

1 Answer 72 Views
Editor
This is a migrated thread and some comments may be shown as answers.
The Stormm
Top achievements
Rank 1
The Stormm asked on 30 Nov 2009, 11:30 PM
I am a bit confused...

I have a site that is utilizing URL Routing and I want to create a custom image and file dialog that allows me to select file names from a database.  I have already created an image/file management system and I simply want the image/file dialog to read the database as needed and place the links within my content.  The actual delivery of the assets will be handled by my routing protocol (which will deliver actual physical files from the server, not binary information from the database).

I have tried to implement the RadEditorCustomProvider, but I am not sure how to implement it for my needs.

Here is the custom provider, but I have no idea how to call it or fill it with data from by database...

Imports Telerik.Web.UI.Widgets 
 
Namespace RadEditorCustomProvider 
    Public MustInherit Class MyFileBrowserContentProvider 
        Inherits FileBrowserContentProvider 
 
        Public Sub New(ByVal context As HttpContext, ByVal searchPatterns As String(), ByVal viewPaths As String(), ByVal uploadPaths As String(), ByVal deletePaths As String(), ByVal selectedUrl As String, ByVal selectedItemTag As String) 
 
            MyBase.New(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag) 
 
        End Sub 
 
    End Class 
End Namespace 

Can anyone help?
Thanks!!

Mark

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 02 Dec 2009, 03:27 PM
Hello The,

I believe that this blog post will be of help.

Best wishes,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
The Stormm
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or