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

[Solved] Get Grid Content from Child Window

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kent
Top achievements
Rank 1
Kent asked on 17 Apr 2013, 05:32 PM
Im trying to get the contents of a radgrid from a child window and am having some problems.  I cant access the mastertable view to get the contents... The gridPsap var picks up the element, but I cant get the master table.

Here is part of my code:
<body onload="formOnLoad();">
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">   
        <script language="javascript" type="text/javascript">
            function formOnLoad() {
 
                var gridPsap = window.opener.document.getElementById("GridPsapHistory");
                var gridPsapTableView = gridPsap.get_masterTableView();
                var gridAli = window.opener.document.getElementById("GridAliHistory");
 
                //window.close();
            }
        </script>
        </telerik:RadCodeBlock>
        <table>

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 17 Apr 2013, 05:38 PM
Hello,

May be you have not assign any record or not bind the grid. That's why you are able to access Grid but not able to access MasterTableView ON CLIENT SIDE.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Kent
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or