Default selected tab by datasource MVVM

4 posts, 1 answers
  1. Ralf
    Ralf avatar
    77 posts
    Member since:
    Jun 2012

    Posted 06 Mar 2015 Link to this post

    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
  2. Answer
    Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 09 Mar 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Ralf
    Ralf avatar
    77 posts
    Member since:
    Jun 2012

    Posted 10 Mar 2015 in reply to Alexander Popov Link to this post

    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
  5. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 10 Mar 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready