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

Image editor with dialog opener

3 Answers 177 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 2
Iron
Iron
Pierre asked on 12 Nov 2009, 08:34 PM
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

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 Nov 2009, 01:57 PM
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.
0
Roland
Top achievements
Rank 1
answered on 08 Jun 2010, 04:41 PM
Above code was taken from that article and converted to VB.

I have the same problem :S and just did copy/paste.
0
Rumen
Telerik team
answered on 10 Jun 2010, 08:35 AM
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.
Tags
Editor
Asked by
Pierre
Top achievements
Rank 2
Iron
Iron
Answers by
Rumen
Telerik team
Roland
Top achievements
Rank 1
Share this question
or