Hi!! ppl , i have a javascript function that opens a wad window in which i am opening a new page which contains a RadGrid . On the Grid item Select i need to close the opened window with two parameters , just like the given below from the Code behined.
<script type=\"text/javascript\">window.frameElement.commonModalDialogClose(1, '{0}');</script>
(commonModalDialogClose does not work with radopen.... is it so)
My Javascript function is given below :
<script type=\"text/javascript\">window.frameElement.commonModalDialogClose(1, '{0}');</script>
(commonModalDialogClose does not work with radopen.... is it so)
My Javascript function is given below :
function ShowSearchCustomerDialog() {
var wnd = radopen('/_layouts/G.Ga.SharePoint/SC.aspx');
var width = 800;
var height = 600;
var left = parseInt((screen.availWidth / 2) - (width / 2));
var top = parseInt((screen.availHeight / 2) - (height / 2));
wnd.setSize(width,height);
wnd.MoveTo(left,top);
}
Calling at :
<
div class="blok-head">
<h3 style="float:left;">
<asp:Label ID="businesspartnerLabel" runat="server" />
</h3>
<asp:PlaceHolder ID="selectCustomerPanel" runat="server">
<a class="select-customer" href="javascript:ShowSearchCustomerDialog();" title="Select customer">Select customer</a>
</asp:PlaceHolder>
</div>