how to close a radopen window on the RadGrid_ItemCommand Select Index

2 posts, 0 answers
  1. Amritansh
    Amritansh avatar
    1 posts
    Member since:
    Jul 2010

    Posted 30 Jul 2010 Link to this post

    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));







    Calling at :





    div class="blok-head">




    <h3 style="float:left;">




    <asp:Label ID="businesspartnerLabel" runat="server" />








    <asp:PlaceHolder ID="selectCustomerPanel" runat="server">




    <a class="select-customer" href="javascript:ShowSearchCustomerDialog();" title="Select customer">Select customer</a>










  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 04 Aug 2010 Link to this post

    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.

    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
Back to Top