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

Get the additionalQueryString on a CustomFileBrowserProvider

1 Answer 71 Views
Editor
This is a migrated thread and some comments may be shown as answers.
9971404
Top achievements
Rank 1
9971404 asked on 12 Jan 2017, 01:34 PM

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.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 16 Jan 2017, 03:57 PM
Hi ricardo,

The addition query in the provided snippet is added properly on my side both dialogs opening:
 - ImageManager
 - DialogManager

Can you elaborate a bit on the exact scenario you are trying to achieve?

Regards,
Vessy
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
9971404
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or