Opening a RadWindow from Within a RadWindow and RadTabStrip

4 posts, 0 answers
  1. Munkhzul
    Munkhzul avatar
    1 posts
    Member since:
    Jul 2010

    Posted 09 Nov 2010 Link to this post

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


  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 09 Nov 2010 Link to this post

    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?
  3. Shinee
    Shinee avatar
    14 posts
    Member since:
    Aug 2010

    Posted 09 Nov 2010 Link to this post

    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?
  4. Shinee
    Shinee avatar
    14 posts
    Member since:
    Aug 2010

    Posted 10 Nov 2010 Link to this post

    Hello.
    How can I get new window (inner popup window)'s value and add it to the tabstrip?
Back to Top