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

Default selected tab by datasource MVVM

3 Answers 134 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ralf
Top achievements
Rank 1
Ralf asked on 06 Mar 2015, 10:09 AM
Hi all,

I have defined a tabstrip using MVVM and bound an array as as source like this example shows: http://dojo.telerik.com/OxUna

But when the tabstrip was rendered, no tab is selected. So how to define the default selected tab using MVVM?

Is it there an data attribute like "data-select-tab"? 

Any suggestions?

Regards,
Ralf

3 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Popov
Telerik team
answered on 09 Mar 2015, 04:18 PM
Hi Ralf,

Usually this is done by setting a class to one of the li elements in the TabStrip. In this case however the tabs are generated dynamically, so I would suggest using a custom binding as shown in this example.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Ralf
Top achievements
Rank 1
answered on 10 Mar 2015, 07:29 AM
Hello Alexander,

thank you for information. Using MVVM declarative binding of selected tab is requiered. So please implement this as default in the next release.

Best regards,
Ralf
0
Alexander Popov
Telerik team
answered on 10 Mar 2015, 08:08 AM
Hi Ralf,

I would encourage you to submit this as a feature request on our feedback portal. That would help us evaluate the idea and prioritize it.

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