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

Closing only specific window

3 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajz
Top achievements
Rank 1
Rajz asked on 25 Jan 2011, 08:41 AM

 

Hello,

Upon selecting an item from a dropdown, two rad popup windows are opened

Both the window opens the same page

Upon clicking Cancel button in the popup only one window should be closed intead of both

Is there any workaround available?

Thank you

Regards
Raj

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Jan 2011, 09:16 AM
Hello,


I couldn't interpret the logic that you are using to open/close windows. Normally the corresponding window will be closed on executing following code in client side button click. Give a try with the following code and see whether it helps.

Client Code:
function cancelAndClose()
{
   var oWindow = GetRadWindow();
   oWindow.close();
}
function GetRadWindow()
{
  var oWindow = null;
  if (window.radWindow)
     oWindow = window.radWindow;
  else if (window.frameElement.radWindow)
     oWindow = window.frameElement.radWindow;
  return oWindow;
}


Best of luck


-Shinu.
0
Rajz
Top achievements
Rank 1
answered on 25 Jan 2011, 09:48 AM
In my case, both the popup windows I have opened were closed, if click Cancel button in one of the popup window.
0
Tsvetina
Telerik team
answered on 28 Jan 2011, 08:18 AM
Hi Rajz,

We would need more information in order to find out what is the cause of the issue. Can you paste the code that you use to open windows? Are you using a modified version of the code in the below linked example? If not, I would recommend you to also take a look at it.
Window Editing


Greetings,
Tsvetina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Rajz
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rajz
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or