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

Passing information to a new window

1 Answer 29 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 30 Aug 2012, 02:35 PM
I am trying to create an inbox service for my companies product, Everything works however for better use for users i would like them to be able to click on an item in a radgrid like they do below
Where i carry a piece of information to the redirected page (strid)

Protected Sub RadGrid1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RadGrid1.SelectedIndexChanged
    If RadGrid1.SelectedItems.Count > 0 Then
        For Each item As GridDataItem In RadGrid1.SelectedItems
            Dim strid As String
            strid = item("UniqueID").Text
            Response.Redirect("MessageForm1.aspx?id=" + strid)
        Next
    End If
End Sub

But what i want to be able to do is open it in a new radwindow such as i do in the code below
function Message() {
    var ow = window.radopen('MessageForm1.aspx');
    ow.setSize(600, 1000);
    ow.set_title("MessageForm");
    ow.moveTo(400, 0);
 
    return false;
}

but still carry over the piece of information that i can get when i redirect

To clarify...
I currently use response.redirect because it allows me to transfer information, but I want to open a whole new rad window, and still transfer the information, is there any way to do this?
Thanks
Ryan

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 Aug 2012, 06:58 AM
Hi Ryan,

I suppose you want to access the cell value when opening a window. Here is the sample code.
JS:
function Message()
{
 var grid = $find('<%= RadGrid1.ClientID %>');
 var masterTable = grid.get_masterTableView();
 var row = masterTable.get_dataItems()[0];
 var cell = masterTable.getCellByColumnUniqueName(row, "UniqueID");
 var wind = $find("RadWindow1");
 wind.show();
}

Thanks,
Princy.
Tags
Window
Asked by
Ryan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or