set_additionalQueryString

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

    Posted 11 Jan Link to this post

    I’m trying to add a query string to the Telerik.Web.UI.DialogHandler.aspx, depending on the on the command executed I want to build the query string. I.E.: if the command is DocumentManager then add “&cmd=1”

    This is the js function:

    function onCommandExecuted(sender, args) {
                var executedCommand = args.get_commandName();
                var oldAdditionalQueryString = sender.get_dialogOpener().get_additionalQueryString();
                if (executedCommand == 'DocumentManager') {
                    sender.get_dialogOpener().set_additionalQueryString() = oldAdditionalQueryString + "&cmd=1";

    However when I check the HttpContext context on my custom file browser, the query is not showing the new variable (cmd) added:
    Ontext.Request.Url.Query =

    ?DialogName=DocumentManager&UseRSM=true&renderMode=1&Skin=Bootstrap&Title=Manejador+de+documentos&doid=02ebd860-6197-43e3-a6be-01a823e70056&dpptn=&isRtl=false

  2. ricardo
    ricardo avatar
    4 posts
    Member since:
    Oct 2016

    Posted 12 Jan in reply to ricardo Link to this post

    Never mind, I wasn't using the set_additionalQueryString() method correctly.

    The right way is get_dialogOpener().set_additionalQueryString("&cmd=1");

Back to Top