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

ImageManager Standalone UserControl

4 Answers 126 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kelly
Top achievements
Rank 1
Kelly asked on 18 Nov 2008, 08:25 PM
Hello,

I have a UserControl with a standalone ImageManager. The userControl is loaded into an aspx page which references a nested masterpage. (with me so far?). What I would like is to move the code from the ascx code behind into the aspx code behind. I have tried every location I can think of in both the aspx page and the masterpage - I always end up with error: "Dialog Parameters for ImageManager Dialog do not exist".

The code currently in Page_load of user control (which works):


Dim
imageManager_parameters As New Editor.DialogControls.FileManagerDialogParameters

Dim imagePath As String() = {"~/App_Themes/images"}

With imageManager_parameters

            .ViewPaths = imagePath

            .SearchPatterns = New String() {"*.jpg"}

            .MaxUploadFileSize = 5000000

End With

 

Dim imageManager_dialogDefinition As New DialogDefinition(GetType(Editor.DialogControls.ImageManagerDialog), imageManager_parameters)

With imageManager_dialogDefinition

            .ClientCallbackFunction = "set_Image"

            .Width = Unit.Pixel(694)

            .Height = Unit.Pixel(440)

End With

 

telerik_imageManager.DialogDefinitions.Add("ImageManager", imageManager_dialogDefinition)


The user control is added to the Init of the aspx page.  
any suggestions?
thank you in advance for any assistance!

- kelly williams

 

 

 

 

 

 

 

 

 

 

 

 

4 Answers, 1 is accepted

Sort by
0
Nikolay Raykov
Telerik team
answered on 21 Nov 2008, 04:02 PM
Hello Kelly,

Could you please open a new support ticket and send us a sample project so that we can see what is wrong in your scenario?

Best wishes,
Nikolay Raykov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Lana
Top achievements
Rank 1
answered on 08 Dec 2008, 10:57 PM
I'm having exactly the same issue while trying to use the approach described here:
http://www.telerik.com/support/kb/aspnet-ajax/editor/using-the-image-and-document-managers-outside-radeditor.aspx

Sys.ArgumentNullException: Dialog Parameters for the ImageManager dialog do not exist
Parameter name: dialogName

Any suggestions?
0
Nikolay Raykov
Telerik team
answered on 09 Dec 2008, 09:51 AM
Hello Lana,

The KB article you have read is the right one for your scenario. I did some tests with the Q3.SP1 under Internet Explorer and FireFox, and it is working as expected. Again as I did in my previous answer I suggest you to open a support ticket and send us a working sample project. Then we will be able to see what really causes the problem.

All the best,
Nikolay Raykov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Lana
Top achievements
Rank 1
answered on 09 Dec 2008, 04:37 PM

Accually, I found the cause myself. In my case, the problem was caused by initializing image manager parameters in the code behind only on initial page load, and not on postbacks.

Regards,
Lana.

Tags
Editor
Asked by
Kelly
Top achievements
Rank 1
Answers by
Nikolay Raykov
Telerik team
Lana
Top achievements
Rank 1
Share this question
or