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

Tab with Link

1 Answer 142 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Micha
Top achievements
Rank 1
Micha asked on 19 Oct 2011, 12:03 PM
I have two use cases that I could not implement with the TabStrip 
 - Open an external URL if the user clicks on the tab header (the tab itself has no content, so the current opened tab will not loose the focus) 
- Calling a Javascript Function if the tab header is clicked (that loads the remote data). Maybe it would be great in general, that it's possible to use data Sources for loading the tab contents and not only static urls... 

Exists there any solutions for those two use cases? 

Thank you 
Micha

1 Answer, 1 is accepted

Sort by
0
Accepted
Kamen Bundev
Telerik team
answered on 20 Oct 2011, 08:31 AM
Hi Micha,

Adding a navigating link is currently only possible directly and it won't open the tab content, check the HTML section in the jsFiddle below.
The TabStrip doesn't support data sources, but you can pass an array of objects to initialize the tabs with append() or the insert methods. Again check the jsFiddle:



Alternatively you can pass a select event handler which can be called on tab select, as seen above.

Best wishes,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TabStrip
Asked by
Micha
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Share this question
or