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

how to close a radopen window on the RadGrid_ItemCommand Select Index

1 Answer 131 Views
Window
This is a migrated thread and some comments may be shown as answers.
Amritansh
Top achievements
Rank 1
Amritansh asked on 30 Jul 2010, 01:26 PM
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 :

 

 

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>

 

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 04 Aug 2010, 01:34 PM
Hello Amritansh,

I am afraid that the provide information is not enough for us to determine what the problem is and what exactly is your setup. In general, when closing RadWindow that shows a content page, you need to use the GetRadWindow() function to get a reference to the RadWindow object on the parent page. More information on the subject can be found here.

If you still experience problems, please open a support ticket and send a sample project where the problem can be reproduced so we can check it.


Regards,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Amritansh
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or