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

pass Parameters radwindow

10 Answers 1634 Views
Window
This is a migrated thread and some comments may be shown as answers.
Wicus
Top achievements
Rank 1
Wicus asked on 01 Aug 2008, 09:19 AM
Hi All...

can any1 help...i hav a form that loads another form in a radwindow...im trying to pass parameters from the form in the radwindow to the main form and then close the radwindow...how can i do this?

10 Answers, 1 is accepted

Sort by
0
Stuart Hemming
Top achievements
Rank 2
answered on 01 Aug 2008, 09:42 AM
Wicus,

Have a look at this online help page. That should get you started.

Post back here if you have a specific question when you've work through the man page.

--
Stuart
0
Wicus
Top achievements
Rank 1
answered on 01 Aug 2008, 09:51 AM
Hi Stuart...

soz but that wont work...i need to do it from the radwindow forms code behind...im getting the parameter from a datagrid.
0
Stuart Hemming
Top achievements
Rank 2
answered on 01 Aug 2008, 10:41 AM
No worries, the technique you want is almost the same. Below is the code from a grid row dblclick event handler that I use...
        function OnRowDblClick(sender, eventargs) { 
          var rowIndex = eventargs.get_itemIndexHierarchical(); 
          var grid = sender; 
          var masterTable = grid.get_masterTableView(); 
          var row = masterTable.get_dataItems()[rowIndex]; 
          var dbfr = row.getDataKeyValue("dbfr"); 
 
          if (dbfr.indexOf('(-1,') > -1) { 
           alert("LOCK has denied you access to this file/record. Please contact your system administrator"); 
          } 
          var oWindow = GetRadWindow(); 
          var arg = new Object(); 
          arg.popupType = document.getElementById("__PopupType").value; 
          if (arg.popupType == "picklist") { 
            var mainColumnName = document.getElementById("__MainColumn").value; 
            if (mainColumnName != "") arg.mainColumnValue = masterTable.getCellByColumnUniqueName(row, mainColumnName).innerHTML
            var displayColumns = document.getElementById("__DisplayColumns").value; 
            if(displayColumns != "") { 
              var displayColumnsArray = displayColumns.split(","); 
              var displayColumnsValue = ""
              for(var i=0; i<displayColumnsArray.length; i++) { 
                if (displayColumnsValue != "") displayColumnsValue += ","
                displayColumnsValue += masterTable.getCellByColumnUniqueName(row, displayColumnsArray[i]).innerHTML
              } 
            } 
            arg.displayColumnsValue = displayColumnsValue; 
          } 
          arg.dbfr = dbfr; 
          oWindow.Close(arg);        
        }   
This allows you to do it client-side. However, if you absolutely must do it server side, then:
  • Create one or more hidden inputs on the dialog page
  • Populate the inputs servers-side
  • Have the control you use to close the window populate the argument object before calling the window close method.
Am I helping yet?

--
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 01 Aug 2008, 10:46 AM
You might notice I'm using hidden inputs to determine what data from the grid to return to the calling page. These values came from the calling page in the first place and were populated when initially loading the (dialog) page.

--
Stuart
0
Wicus
Top achievements
Rank 1
answered on 01 Aug 2008, 10:52 AM
Hi Stuart...

thnx alot...it rlly helped...im sorted...thnx again
0
Stuart Hemming
Top achievements
Rank 2
answered on 01 Aug 2008, 12:10 PM
You're very welcome.

--
Stuart
0
Srikanth
Top achievements
Rank 1
answered on 13 Aug 2010, 03:17 AM
Hi All,

i have a form that contains RadTreeview. if we check any radnode,it opens the Radwindow. here i would like to pass entire node  to radwindow. i want to use that node values in Radwindow.

pls help to resolve this.


Thanks and Regards,
Srikanth.
0
Shinu
Top achievements
Rank 2
answered on 13 Aug 2010, 09:48 AM
Hello Srikanth,

You can pass the node text to new window as url parameter.
Using the URL Query String to Provide Arguments to RadWindow


-Shinu.
0
Erik
Top achievements
Rank 2
answered on 14 Sep 2011, 01:20 PM
this link is broken Shinu.
0
Princy
Top achievements
Rank 2
answered on 14 Sep 2011, 01:59 PM
Hello Erik,

The correct link is here.
Using the URL Query String to Provide Arguments to RadWindow.

Thanks,
Princy.
Tags
Window
Asked by
Wicus
Top achievements
Rank 1
Answers by
Stuart Hemming
Top achievements
Rank 2
Wicus
Top achievements
Rank 1
Srikanth
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Erik
Top achievements
Rank 2
Princy
Top achievements
Rank 2
Share this question
or