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

Opening a RadWindow from Within a RadWindow and RadTabStrip

3 Answers 177 Views
Window
This is a migrated thread and some comments may be shown as answers.
Munkhzul
Top achievements
Rank 1
Munkhzul asked on 09 Nov 2010, 12:50 PM
Hi there, I'm having a problem with rad tab and window.
One window opens another window in it and the issue is the inner window doesn't show on the taskbar.

/* This is the source */
 
function GetRadWindow() {
 var oWindow = null;
 if (window.radWindow)
   oWindow = window.radWindow;
 else if (window.frameElement.radWindow)
   oWindow = window.frameElement.radWindow;
 return oWindow;
}
 
/* opening new window*/
  var urlvalue = 'www.google.com?id='21312';
  oBrowserWnd = GetRadWindow().BrowserWindow;
  var oManager = GetRadWindow().get_windowManager();
  var otabStrip = GetRadWindow().correspondingTabStrip;
  oManager.open(urlvalue, null);
  oManager.maximizeAll();
 
/* adding tab. this not working correctly I think*/
otabStrip.trackChanges();
var tab = new Telerik.Web.UI.RadTab();
tab.set_text('a');
oWnd.correspondingTab = tab;
otabStrip.get_tabs().add(tab);
otabStrip.repaint();
tab.correspondingWnd = oWnd;
tab.set_imageUrl(item.get_imageUrl());
otabStrip.commitChanges();
tab.select();


3 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 09 Nov 2010, 02:09 PM
Hello Munkhzul,

Where is this oWnd object declared. I don't see it being declared in the code you provided. Could that be the issue?
0
Shinee
Top achievements
Rank 1
answered on 10 Nov 2010, 02:56 AM
Hello Cori. oWnd is the inner window we just opened. And declared it on the most outer window. Used a example.
I have attached the mockup to make you understand more clearly.
Can u please advice me how to fix this tab issue?
0
Shinee
Top achievements
Rank 1
answered on 11 Nov 2010, 02:30 AM
Hello.
How can I get new window (inner popup window)'s value and add it to the tabstrip?
Tags
Window
Asked by
Munkhzul
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Shinee
Top achievements
Rank 1
Share this question
or