How to assign Rad TabStrip Text using Inline code

2 posts, 0 answers
  1. Con Raducanu
    Con Raducanu avatar
    3 posts
    Member since:
    Mar 2009

    Posted 14 Apr 2009 Link to this post


    1 <telerik:RadTabStrip ID="rtabsUserAccount" runat="server" Width="600" MultiPageID="RadMultiPageMain">  
    2  
    3         <Tabs> 
    4  
    5             <telerik:RadTab Text="<%=Resources.Common.AccountDetails%>" PageViewID="RadPageViewAccountDetails" /> 
    6  
    7             <telerik:RadTab Text="<%=Resources.Common.CreatorOwner%>" PageViewID="RadPageViewAccountCreator" /> 
    8  
    9         </Tabs> 
    10  
    11     </telerik:RadTabStrip> 
    12  
    Does anybody knows why the above code does not works. When I load mt web form the tab strip Text is empty!
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 15 Apr 2009 Link to this post

    Hello Con,

    Please find below your modified code snippet that should work as expected.

    ASPX:
    <telerik:RadTabStrip ID="rtabsUserAccount" runat="server" Width="600" MultiPageID="RadMultiPageMain">  
        <Tabs> 
            <telerik:RadTab Text='<%#Resources.Common.AccountDetails%>' PageViewID="RadPageViewAccountDetails" /> 
            <telerik:RadTab Text='<%#Resources.Common.CreatorOwner%>' PageViewID="RadPageViewAccountCreator" /> 
        </Tabs> 
    </telerik:RadTabStrip> 

    Code-behind:
    protected void Page_Load(object sender, EventArgs e)  
    {  
        rtabsUserAccount.DataBind();  

    All the best,
    Paul
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top