Get the additionalQueryString on a CustomFileBrowserProvider

2 posts, 0 answers
  1. ricardo
    ricardo avatar
    4 posts
    Member since:
    Oct 2016

    Posted 12 Jan Link to this post

    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.

  2. Vessy
    Admin
    Vessy avatar
    1660 posts

    Posted 16 Jan Link to this post

    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.
Back to Top