Hello,
I have some custom commands that are working fine, and I am able to pass client data to the code-behind using the commandArgument. However, if I try to do the same thing for the built in AddText functionality, the popup dialog never displays.
I am currently reading the custom data here:
If I comment out the client-side code above, the Add Text popup works as expected. Is there something I am doing wrong, or is there another way to pass client side data to the code-behind?
Thanks,
Adrian
I have some custom commands that are working fine, and I am able to pass client data to the code-behind using the commandArgument. However, if I try to do the same thing for the built in AddText functionality, the popup dialog never displays.
//Javascript
//If this is done, the text editor dialog won't show. Not sure why.
Telerik.Web.UI.ImageEditor.CommandList.AddText =
function
(imageEditor, commandName, args) {
var
commandText =
"AddText"
;
var
commandArgument = customClientSideDataHere;
imageEditor.editImageOnServer(commandName, commandText, commandArgument, callbackFunction);
};
I am currently reading the custom data here:
protected
void
RadImageEditor1_ImageEditing(
object
sender, ImageEditorEditingEventArgs args)
{
string
text = args.Argument;
}
If I comment out the client-side code above, the Add Text popup works as expected. Is there something I am doing wrong, or is there another way to pass client side data to the code-behind?
Thanks,
Adrian