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

set_additionalQueryString

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

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

1 Answer, 1 is accepted

Sort by
0
9971404
Top achievements
Rank 1
answered on 12 Jan 2017, 01:26 PM

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

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

Tags
Editor
Asked by
9971404
Top achievements
Rank 1
Answers by
9971404
Top achievements
Rank 1
Share this question
or