I'm trying to use the example for the Rad Custom Dialog, and I'm getting this error
when I click on my custom tool button.
Sys.ArgumentNullException: Dialog Parameters for the <xxx> dialog do not exist
Parameter name: dialogName
Any thoughts?
I'm using the example but I was trying to call my own user control.
I changed the "'s in the String.format to single 's because they were giving me syntax issues. I tried it both ways.
<script type="text/javascript">
Telerik.Web.UI.Editor.CommandList["InsertHyperText"] = function(commandName, editor, args)
{
var myCallbackFunction = function(sender, args){
editor.pasteHtml(String.format("<a href={0}>{1}</a> originalAttribute='href' originalPath='{0}>{1}</a>' originalAttribute='href' originalPath='{0}>{1}</a>' ", args.href, args.text))
}
editor.showDialog("InsertHyperText", {}, myCallbackFunction);
};
</script>
when I click on my custom tool button.
Sys.ArgumentNullException: Dialog Parameters for the <xxx> dialog do not exist
Parameter name: dialogName
Any thoughts?
I'm using the example but I was trying to call my own user control.
I changed the "'s in the String.format to single 's because they were giving me syntax issues. I tried it both ways.
<script type="text/javascript">
Telerik.Web.UI.Editor.CommandList["InsertHyperText"] = function(commandName, editor, args)
{
var myCallbackFunction = function(sender, args){
editor.pasteHtml(String.format("<a href={0}>{1}</a> originalAttribute='href' originalPath='{0}>{1}</a>' originalAttribute='href' originalPath='{0}>{1}</a>' ", args.href, args.text))
}
editor.showDialog("InsertHyperText", {}, myCallbackFunction);
};
</script>