This question is locked. New answers and comments are not allowed.
Hello,
I'm trying to bind a grid using a controller method called from a popup window.
I use javascript in my popup window to find the grid on the parent window, to call the method controller and to bind the grid :
When I launch the javascript function above, I get an error message from visual studio : "Jscript object expected" in the file telerik.grid.js.
If I click the "Ignore" button, the datas are correctly bound to the grid.
I have attached a test project wich shows the problem.
Regards,
I'm trying to bind a grid using a controller method called from a popup window.
I use javascript in my popup window to find the grid on the parent window, to call the method controller and to bind the grid :
<script type="text/javascript"> function BindToParentWindow() { var parentGrid = window.opener.$('#TestUsersGrid').data('tGrid'); $.ajax( { type: "POST", url: "/Home/BindToParentWindow", async: false, dataType: "json", success: function (data) { parentGrid.dataBind(data); } }); window.close(); } </script>When I launch the javascript function above, I get an error message from visual studio : "Jscript object expected" in the file telerik.grid.js.
If I click the "Ignore" button, the datas are correctly bound to the grid.
I have attached a test project wich shows the problem.
Regards,