pass Parameters radwindow

11 posts, 0 answers
  1. Wicus
    Wicus avatar
    31 posts
    Member since:
    Jul 2008

    Posted 01 Aug 2008 Link to this post

    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?
  2. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 01 Aug 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Wicus
    Wicus avatar
    31 posts
    Member since:
    Jul 2008

    Posted 01 Aug 2008 Link to this post

    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.
  5. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 01 Aug 2008 Link to this post

    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
  6. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 01 Aug 2008 Link to this post

    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
  7. Wicus
    Wicus avatar
    31 posts
    Member since:
    Jul 2008

    Posted 01 Aug 2008 Link to this post

    Hi Stuart...

    thnx alot...it rlly helped...im sorted...thnx again
  8. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 01 Aug 2008 Link to this post

    You're very welcome.

    --
    Stuart
  9. Srikanth
    Srikanth avatar
    10 posts
    Member since:
    Jul 2010

    Posted 12 Aug 2010 Link to this post

    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.
  10. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Aug 2010 Link to this post

    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.
  11. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 14 Sep 2011 Link to this post

    this link is broken Shinu.
  12. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Sep 2011 Link to this post

    Hello Erik,

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

    Thanks,
    Princy.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017