Hello,
On my page I am adding the RadWindow and RadWindowManager dynamically. I have a rad ajax panel and a placeholder in rad ajax panel. Then the window and manager are added to the placeholder. I am opening the window with the following java script.
It contains some testing code as well.
It works fine first time but after the partial load of the page with ajax panel when i click the button to open window it is giving the following error.
Uncaught TypeError: Cannot call method 'show' of null
After partial loading the manager contains no windows, why!! I am utilizing the OnInit event to add the window and manager to the page.
On my page I am adding the RadWindow and RadWindowManager dynamically. I have a rad ajax panel and a placeholder in rad ajax panel. Then the window and manager are added to the placeholder. I am opening the window with the following java script.
function OpenEditWindow(managerName, windowName) {
var WinManager = $find(managerName);
console.debug("ImageGallery: Opening edit window");
console.debug(WinManager);
var windows = WinManager.get_windows();
for (var i = 0; i < windows.length; i++) {
console.debug(windows[i].get_name() + ": " + windows[i].get_navigateUrl());
}
var oWnd = WinManager.getWindowByName(windowName);
oWnd.show();
}
It contains some testing code as well.
It works fine first time but after the partial load of the page with ajax panel when i click the button to open window it is giving the following error.
Uncaught TypeError: Cannot call method 'show' of null
After partial loading the manager contains no windows, why!! I am utilizing the OnInit event to add the window and manager to the page.