Childtab Value of tabstrip issue

3 posts, 0 answers
  1. sudheer
    sudheer avatar
    109 posts
    Member since:
    Dec 2008

    Posted 06 Apr 2009 Link to this post

    Hi telerik team,

    I have an issue how to get Chlidtab pkid i followed the below URL
    http://demos.telerik.com/aspnet-ajax/tabstrip/examples/clientside/clientevents/defaultcs.aspx. through this i m able to get selected child tab text but not value(PKID).

    Please help.
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 08 Apr 2009 Link to this post

    Hi sudheer,

    Please find below a sample code snippe that shows the needed approach.

    <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server">  
    </asp:ScriptManager> 
     
    <script type="text/javascript">  
    function onTabSelected(sender, args) {  
        alert("Selected: " + args.get_tab().get_value());  
    }  
    </script> 
     
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" OnClientTabSelected="onTabSelected">  
    <Tabs> 
        <telerik:RadTab runat="server" Text="Root RadTab1" Value="root1">  
        <Tabs> 
            <telerik:RadTab runat="server" Text="Child RadTab 1" Value="root1_1">  
            </telerik:RadTab> 
            <telerik:RadTab runat="server" Text="Child RadTab 2" Value="root1_2">  
            </telerik:RadTab> 
            <telerik:RadTab runat="server" Text="Child RadTab 3" Value="root1_3">  
            </telerik:RadTab> 
        </Tabs> 
        </telerik:RadTab> 
        <telerik:RadTab runat="server" Text="Root RadTab2" Value="root2">  
        <Tabs> 
            <telerik:RadTab runat="server" Text="Child RadTab 1" Value="root2_1">  
            </telerik:RadTab> 
            <telerik:RadTab runat="server" Text="Child RadTab 2" Value="root2_2">  
            </telerik:RadTab> 
        </Tabs> 
        </telerik:RadTab> 
    </Tabs> 
    </telerik:RadTabStrip> 
    </form> 


    Kind regards,
    Paul
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. sudheer
    sudheer avatar
    109 posts
    Member since:
    Dec 2008

    Posted 08 Apr 2009 Link to this post

    Hi paul,

    Thanks for reply ,

    Anyway i found solution with below code,  because my tabstrip is binding through dataset.
                TopMenus.DataFieldID = "PKID";
                TopMenus.DataValueField = "PKID";
                TopMenus.DataFieldParentID = "ParentFKID";
                TopMenus.DataSource = l_dsSubMenu;
                TopMenus.DataBind();
Back to Top