This is a migrated thread and some comments may be shown as answers.

[Solved] Can you put the tabstrip in a master page?

3 Answers 67 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
William Brown
Top achievements
Rank 1
William Brown asked on 15 Jun 2010, 11:51 PM
Hello,

I have been trying to put my tabstrip in a master page used by a set of 10 pages.   I haven't been able to get it to work with the

[

PopulateSiteMap(SiteMapName = SitemapHelper.AdminSiteMapKey, ViewDataKey = SitemapHelper.AdminSiteMapKey)] code.   Can this be done?

Thanks,

Bill

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 16 Jun 2010, 09:00 AM
Hi William Brown,

You can easily achieve your goal if you put TabStrip component in the master page and register required sitemap into SiteMapManager. Current version of Telerik Components for ASP.NET MVC does not required PopulateSiteMap attribute if the sitemap is registered in SiteMapManager. For your convenience I have attached a simple test project which shows how to accomplish this task.

You should also verify that the controller and action names are accessible, otherwise the binding will fail.

Greetings,
Georgi Krustev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
William Brown
Top achievements
Rank 1
answered on 16 Jun 2010, 03:23 PM
Hi Georgi,

Thanks for the project.  When I run it the tabs are difficult to test since they each just redirect to your website.  If I change the site map to contoller and action name, will it keep the correct tab highlighted without additional code?  Again, I appreciate the quick response and sample project!  Thanks for your support.

Bill
0
William Brown
Top achievements
Rank 1
answered on 16 Jun 2010, 03:45 PM
I changed the sitemap to:  
 
<?xml version="1.0" encoding="utf-8" ?> 
  <siteMap> 
    <siteMapNode title="Home" controller="Home" action="Overview">  
      <siteMapNode controller="Home" action="Index" title="Home" /> 
      <siteMapNode controller="Account" action="Register" title="Register" /> 
      <siteMapNode controller="Tab123" action="Index" title="Tab123" /> 
    </siteMapNode> 
</siteMap> 
 
Tab works great.  Thanks again for the solution, all works great!    
 
Bill 
Tags
TabStrip
Asked by
William Brown
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
William Brown
Top achievements
Rank 1
Share this question
or