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

Window manager does not find existing window

2 Answers 72 Views
Window
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Iron
Iron
Al asked on 03 Dec 2014, 02:37 PM
Hi,
I have a radWindowManager with two windows, if I set the OpenerElementID as a button on my form then all is ok but if I do exactly the same thing from a separate button in click as below then the window opens but it is not the window defined by 'rwDialog', it is a new empty window:

function btnClick() {
      var oManager = GetRadWindowManager();
      oManager.open(null, "rwDialog");
}


This is in a master page, not sure if that makes any difference.

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 03 Dec 2014, 02:58 PM

Hello,

This article explains how to tackle this case: http://www.telerik.com/help/aspnet-ajax/window-troubleshooting-wrong-window-opened.html. Probably, there is another RadWindowManager on the page, so GetRadWindowManager() does not return what you expect and you need to use $find().


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 04 Dec 2014, 06:49 AM
Thank you, that solved my problem.
Tags
Window
Asked by
Al
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Al
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or