How can I modify the query string of the DialogHandler.aspx from the RadEditor when a command is executed ?
I want to be able get the query string from my CustomFileBrowserProvider HttpContext parameter.
I tried:
function OnClientCommandExecuting(editor, args) {
var commandName =
args.get_commandName();
if (commandName
== 'ImageManager') {
editor.get_dialogOpener().set_additionalQueryString("&cmd=img");
}
else if (executedCommand == 'DocumentManager') {
editor.get_dialogOpener().set_additionalQueryString("&cmd=doc");
}
}
It only works the second time the file
browser is opened.