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

<A> tag when building a TabStrip with the MVC wrapper

2 Answers 40 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Lutfi
Top achievements
Rank 1
Lutfi asked on 11 Sep 2013, 08:53 AM
Is there a way to tell the MVC wrapper of TabStrip no to create the <a> tags? It does conflict with the hash navigation of my single page application.
Thanks.

Lutfi

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 11 Sep 2013, 11:23 AM
Hello Lutfi,

The HREF attributes exists mainly for accessibility reasons. You can remove them by using the following script after the TabStrip:

$(".k-tabstrip-items").find("a").each(function(idx, el) { el.removeAttribute("href"); } );


Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lutfi
Top achievements
Rank 1
answered on 11 Sep 2013, 03:01 PM
I suspected that the solution was going to be using JavaScript, although it is far from ideal since the point of using the MVC wrapper is to avoid configuring the component with JavaScript.
Tags
TabStrip
Asked by
Lutfi
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Lutfi
Top achievements
Rank 1
Share this question
or