Image editor with dialog opener

4 posts, 0 answers
  1. Pierre
    Pierre avatar
    212 posts
    Member since:
    Apr 2007

    Posted 12 Nov 2009 Link to this post

    hi, I use DialogOpener to open ImageManager directly
            Dim imageManagerParameters As New ImageManagerDialogParameters()  
            imageManagerParameters.MaxUploadFileSize = 1048576  
            imageManagerParameters.SearchPatterns = New String() {"*.jpg""*.png""*.gif"}  
            imageManagerParameters.FileBrowserContentProviderTypeName = GetType(wwwBaultar.RadEditorDBContentProvider).AssemblyQualifiedName  
            imageManagerParameters.ViewPaths = New String() {"ROOT/Images"}  
            imageManagerParameters.UploadPaths = New String() {"ROOT/Images"}  
            imageManagerParameters.DeletePaths = New String() {"ROOT/Images"}  
     
            Dim imageManager As New DialogDefinition(GetType(ImageManagerDialog), imageManagerParameters)  
            imageManager.ClientCallbackFunction = "ImageManagerFunction" 
            imageManager.Width = Unit.Pixel(694)  
            imageManager.Height = Unit.Pixel(440)  
     
            DialogOpener1.DialogDefinitions.Add("ImageManager", imageManager) 

    That work great except if user click on the Image Editor I got this error:

    Microsoft JScript runtime error: Sys.ArgumentNullException: Dialog Parameters for the ImageEditor dialog do not exist
    Parameter name: dialogName

    i see some post fot calling the image Editor directly but whats about calling inside the image manager ?
    Thanks
  2. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 17 Nov 2009 Link to this post

    Hi Pierre,

    The following KB article provides guidance how to enable the Image Editor in a standalone Image Manager dialog: Using the Image and Document managers outside RadEditor.

    Kind regards,
    Rumen
    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. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 08 Jun 2010 Link to this post

    Above code was taken from that article and converted to VB.

    I have the same problem :S and just did copy/paste.
  5. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 10 Jun 2010 Link to this post

    Hi Roland,

    Please, find attached a sample working project that demonstrates how to run the image and document as standalone controls using VB.NET code.

    Best regards,
    Rumen
    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.
Back to Top