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

[Solved] ImageManager CallbackFunction Values

1 Answer 84 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 2
Felix asked on 12 Aug 2009, 01:00 PM
Hi all,

i hope i can describe this properly:

We create an ImageManager for an editor in Codebehind like this:

DialogDefinition imageManager4Editor = new DialogDefinition(typeof(ImageManagerDialog), ImageManagerParameters); 
imageManager4Editor.ClientCallbackFunction = "ImageManagerFunction"
imageManager4Editor.Width = Unit.Pixel(694); 
imageManager4Editor.Height = Unit.Pixel(440); 
DialogOpener1.DialogDefinitions.Add("ImageManager4Editor", imageManager4Editor); 
 

Then the ImageManager CallbackFunction which returns the values for the image looks like this:

function ImageManagerFunction(sender, args)   
{   
    var commandName = args.get_commandName();    
                 
    var value = args.get_value(); 
    var src = value.src; // works 
    var height = value.height; // works 
    var width = value.width; // works 
    var border = value.? //  
    ... 
     
}     

Now, we would need the names of all other properties, which the properties-tab of the ImageManager holds, at least: border-color, border-width, image-alignment, margin.

Is there a list, reference or soemthing like that with the names of these properties?

Thanks in advance
Felix

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 14 Aug 2009, 03:53 PM
Hi Felix,

You can easily see all properties of the args.get_value() object using the debugger, e.g.


function ImageManagerFunction(sender, args)    
{    
    var commandName = args.get_commandName();     
                  
    var value = args.get_value(); 
debugger
  
    var src = value.src; // works  
    var height = value.height; // works  
    var width = value.width; // works  
    var border = value.? //   
    ...  
      
}      

For your convenience I have attached a video demonstrating how to launch the debugger.


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Felix
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or