Issue in opening Rad Window through TabStrip click

4 posts, 0 answers
  1. Meenakshi Nagalingam
    Meenakshi Nagalingam avatar
    53 posts
    Member since:
    Aug 2009

    Posted 18 Jan 2012 Link to this post

    In our project scenario, we have two tabs in a tab strip. A rad popup window is to be displayed when user navigates from one tab to another through tab click. But a javascript error stating radwindow is undefined is displayed. 

    We have mentioned the RadTab as "runat="server"". Also mentioned the tab id in the ajax update panel.

    Please let us know if we need to add any other configuration to rad tab for using the rad window.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Jan 2012 Link to this post

    Hello,

    Try the following code snippet to open a RadWindow on TabClick.
    C#:
    protected void tb_TabClick(object sender, RadTabStripEventArgs e)
     {
           RadWindowManager RadWindowManager1 = new RadWindowManager();
           RadWindow RadWindow1 = new RadWindow();
           RadWindow1.VisibleOnPageLoad = true;
           RadWindowManager1.Windows.Add(RadWindow1);
           form1.Controls.Add(RadWindow1);
     }

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Meenakshi Nagalingam
    Meenakshi Nagalingam avatar
    53 posts
    Member since:
    Aug 2009

    Posted 19 Jan 2012 Link to this post

    Hi,

    I forgot to mention that the solution we are looking for is calling a Rad Window through client side clicking of Rad Tab and not server side. 
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 20 Jan 2012 Link to this post

    Hello,

    Try the following.

    C#:
    RadTabStrip1.Attributes.Add("onclick","test();");
    JS:
    <script type="text/javascript">
     function test()
      {
        window.radopen(null, "window1");
      }
    </script>

    Thanks,
    Princy.
Back to Top