RadTabStrip -access tabname (URGENT)

2 posts, 0 answers
  1. Sindu
    Sindu avatar
    46 posts
    Member since:
    Oct 2011

    Posted 04 Feb 2012 Link to this post


    I have a main page like Main.aspx.



    <telerik:RadPane ID="viewPane" runat="server" Scrolling="None" >



    <telerik:RadSplitter ID="innerSplitter" runat="server" Height="100%" Width="100%" EnableViewState="true" VisibleDuringInit="true" >



    <telerik:RadPane ID="leftMiddlePane" runat="server" ContentUrl="StartPage.aspx"></telerik:RadPane>
    </telerik:RadSplitter >
    </telerik:RadPane >

    I have another page say Default.aspx  which contains RadTabStrip inside RadTab say copy,paste etc..
    programatically I set Default.aspx in the "leftMiddlePane" .
    I have another page open using window.open method .

    My aim is to access RadTab text in the newly opened window .?

    How can I get these RadTabs name inside newly opened window using javascript or Jquery?



  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Feb 2012 Link to this post


    Try the following javascript.
    function OnClientClick()
       var tabstrip1 = $find("<%=RadTabStrip1.ClientID %>");
       var HField1 = document.getElementById("HiddenField1").value;// hiddenfield value contains label ClientID.
       var Label1 = document.getElementById(HField1);
       var text = tabstrip1.get_selectedTab().get_text();
       Label1.innerHTML = text; // setting text to RadWindow via label.
       window.radopen(null, "RadWindow1");

    Note: You can add text to Window by adding label inside contenttemplate.

Back to Top