Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7613309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:07:30+00:00 2026-05-31T02:07:30+00:00

Does a RadTabStrip work in a MasterPage? The tabs do not appear selected when

  • 0

Does a RadTabStrip work in a MasterPage? The tabs do not appear selected when clicked.

Steps:

  1. Create a new Web Application Project. By default it contains Home and About tabs inside a Master Page (Site.Master). The tabs are asp:MenuItem controls.

  2. Comment out the asp:Menu control and drag a RadTabStrip in its place. Add two RadTabs. When you run the application each tab works as expected — it appears to be selected when clicked.

  3. Now add NavigateUrls to each RadTab pointing to the “~Default.aspx” and “~About.aspx” pages. When the application runs the tabs don’t appear to be selected when clicked (although the correct page displays).

    What’s going on? How can I make this work?

Update: Here’s how I altered the default code in Site.Master…

<div>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
</div>

        <%--<div class="clear hideSkiplink">
            <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                <Items>
                    <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/>
                    <asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/>
                </Items>
            </asp:Menu>
        </div>--%>

    <div>
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server">
            <Tabs>
                <telerik:RadTab runat="server" Text="Root RadTab1" NavigateUrl="~/Default.aspx">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Root RadTab2" NavigateUrl="~/About.aspx" >
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
    </div>

The answer…

Bojan Skrchevski’s answer led me to this. I added this code to the Master Page’s Page_Load event and it works:

using Telerik.Web.UI;

namespace WebApplication1
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RadTab currentTab = RadTabStrip1.FindTabByUrl(Request.Url.PathAndQuery);
            if (currentTab != null) currentTab.Selected = true;
        }
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:07:31+00:00Added an answer on May 31, 2026 at 2:07 am

    I think that you also need to add runat="server" to the RadTab element if you want to use it like that. For example:

    <telerik:RadTab Text="Home" NavigateUrl="Default.aspx" runat="server">
    </telerik:RadTab>
    

    You can also use ContentUrl in the corresponding telerik:RadPageView to navigate on the client side. Example:

    <telerik:RadPageView ID="RadPageView1" runat="server" ContentUrl="Default.aspx">
    

    UPDATE(on your update):
    When you add runat="server" to the RadTab then it causes a postback. On postback the control is unable to determine which tab is selected even though it navigates to the specified page. Here’s how it is solved in the Telerik example:

            protected void Page_Load(object sender, System.EventArgs e)
            {
                string urlWithSessionID = Response.ApplyAppPathModifier(Request.Url.PathAndQuery);
                RadTab tab = RadTabStrip1.FindTabByUrl(urlWithSessionID);
                if (tab != null)
                {
                    tab.SelectParents();
                    tab.PageView.Selected = true;
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how to get IntelliSense to work reliably when working in C/C++
Does doxygen doesn't work properly on python script with a shebang? I tried one
does someone know how I can get Sublime Text 2 to auto-hide the tabs
Does the Windows API provide a way to notify a running Delphi application in
Does anybody know a way to create a keyboard shortcut for the button 'Expand
I have a control, RadTabStrip, which contains: public RadTabCollection Tabs { get; } .
Does anyone know, what an XMLHttpRequest enables a web page to do, which cannot
Does anybody know what i mean? In fullscreen mode of the new camera app
Does this work in > iOS 5? .element { background: url(images/myImage.jpg) 50% 0 no-repeat
Does Google force employees who have offers from Facebook to leave immediately?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.