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

3 posts, 1 answers
  1. Lutfi
    Lutfi avatar
    2 posts
    Member since:
    Jan 2012

    Posted 11 Sep 2013 Link to this post

    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. Answer
    Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 11 Sep 2013 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Lutfi
    Lutfi avatar
    2 posts
    Member since:
    Jan 2012

    Posted 11 Sep 2013 Link to this post

    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.
Back to Top