Stand alone imagebrowser with local paths

5 posts, 1 answers
  1. James Shelton-Agar
    James Shelton-Agar avatar
    108 posts
    Member since:
    May 2008

    Posted 23 Sep 2009 Link to this post


    as for the post you'd solved the other day, local path  for fileexplorer, works pretty well, thanks
    http://www.telerik.com/community/code-library/aspnet-ajax/file-explorer/use-local-path-instead.aspx

    I am now trying to putup a feature for users to maintain images from my local path(not web root), as I can callout the imagemanager standalone as solved

    how can i access the filebrowser within imagemanager and change file provider to support local path?

    thanks
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 24 Sep 2009 Link to this post

    Hi James,

    The ImageManager object has a ContentProviderTypeName property which can be used to set the new content provider to it. For example you can set the provider to the image manager as shown bellow :

    protected void Page_Load(object sender, EventArgs e) 
        imageManager.ContentProviderTypeName = typeof(CustomProvider.CustomFileProvider).AssemblyQualifiedName; 

    You need to set this property in the Page_Load event at latest.

    I hope this help.

    Greetings,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. James Shelton-Agar
    James Shelton-Agar avatar
    108 posts
    Member since:
    May 2008

    Posted 26 Nov 2009 Link to this post

    Hi i have called up the imagemanager window like following

            Dim imageManagerParameters As New FileManagerDialogParameters()
            imageManagerParameters.ViewPaths = New String() {"~/Images/User"}
            imageManagerParameters.UploadPaths = New String() {"~/Images/User"}
            imageManagerParameters.DeletePaths = New String() {"~/Images/User"}
            imageManagerParameters.MaxUploadFileSize = 5000000


            ' If you don't set the following property, the default value will be used  
            ' imageManagerParameters.SearchPatterns = new string[] { "*.jpg" };  
            
            Dim imageManager As New DialogDefinition(GetType(ImageManagerDialog), imageManagerParameters)
            imageManager.ClientCallbackFunction = "ImageManagerFunction"
            imageManager.Width = Unit.Pixel(694)
            imageManager.Height = Unit.Pixel(440)

            'If you need to customize the dialog then register the external dialog files
            imageManager.Parameters("ExternalDialogsPath") = "~/EditorDialogs/"

            DialogOpener1.DialogDefinitions.Add("ImageManager", imageManager)

            Dim imageEditorParameters As New FileManagerDialogParameters()
            imageEditorParameters.ViewPaths = New String() {"~/Images/User"}
            imageEditorParameters.UploadPaths = New String() {"~/Images/User"}
            imageEditorParameters.DeletePaths = New String() {"~/Images/User"}
            imageEditorParameters.MaxUploadFileSize = 5000000

            Dim imageEditor As New DialogDefinition(GetType(ImageEditorDialog), imageEditorParameters)
            imageEditor.Width = Unit.Pixel(832)
            imageEditor.Height = Unit.Pixel(520)
            imageEditor.Parameters("ExternalDialogsPath") = "~/EditorDialogs/"
            DialogOpener1.DialogDefinitions.Add("ImageEditor", imageEditor)

    However, i couldn't find ContentProviderTypeName property anywhere. 
  5. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 30 Nov 2009 Link to this post

    Hi James,

    The ImageManager object has a FileBrowserContentProviderTypeName property which can be used to set the new content provider. For example:

    imageManagerParameters.FileBrowserContentProviderTypeName = GetType(CustomProvider.CustomProvider).AssemblyQualifiedName

    I hope this help.

    Greetings,
    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.
  6. James Shelton-Agar
    James Shelton-Agar avatar
    108 posts
    Member since:
    May 2008

    Posted 16 Dec 2009 Link to this post

    Thank you, it makes senses now
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017