Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsProvidersProvidersDotNetNuke.RadEditorProvider GetDialogDefinition return is empty?DotNetNuke.RadEditorProvider GetDialogDefinition return is empty?
Previous
 
Next
New Post
2/16/2013 1:54 PM
 

Please excuse the cross post..

Need some guidance to resolve this circumstance. 

I am attempting to GetDialogDefinition for the ImageManager such that to set the width and height of the Dialog/ImageManager.ascx It seems that the bag she is empty...The given key of 'ImageManager' was not present in the dictionary.

Basically, i have found the RadEditor control and used this suggested pattern within a pre-render event to set the ImageManager control.

Telerik.Web.UI.DialogDefinition ImageManager = foundRadEditorControl.GetDialogDefinition("ImageManager");
ImageManager.Height = Unit.Pixel(500);
ImageManager.Width = Unit.Pixel(1020);

Any suggestions on setting those values are appreciated.

 

 


Incredible PeopleWare.Canada
 
New Post
2/19/2013 9:28 PM
 

Well i have not found or resolved why the code behind method does not work.. If someone discoveries the reason why that method fails to work Please post a resolution

In the meanwhile, I have use a client side scripting method using the ClientScript.js (as seen below)

function OnClientCommandExecuting(editor, args) {
    if (typeof jQuery === "undefined" || typeof jQuery.fn.dnnControlPanel === "undefined") return;
    
    var commandName = args.get_commandName();
    if (commandName == "ToggleScreenMode") {
        if (editor._isFullScreen == true ) {
            jQuery.fn.dnnControlPanel.show();
        }
        else {
            jQuery.fn.dnnControlPanel.hide();
        }
 }
 if (commandName == "ImageManager") {   

     var defin = editor.get_dialogOpener()._getDialogDefinition(commandName);
     // now we can set the width and/or height of the Manager which in turn sets the RadWindow Wrapper
     defin.Width = '900px';

 }


}

Cheers,


Incredible PeopleWare.Canada
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsProvidersProvidersDotNetNuke.RadEditorProvider GetDialogDefinition return is empty?DotNetNuke.RadEditorProvider GetDialogDefinition return is empty?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out