Tab Strip selected value

5 posts, 0 answers
  1. Marcin
    Marcin avatar
    165 posts
    Member since:
    Jan 2011

    Posted 24 Jan 2013 Link to this post

    I'm trying to use tab strip in standard display/value way. So I'm creating data which have two propertes name and value. I would like create tabs that will display name, but after select I will have access to value, to make some opertaions on value not on name.

    Is it possible?
  2. Holger
    Holger avatar
    77 posts
    Member since:
    Nov 2012

    Posted 24 Jan 2013 Link to this post

    Hi Marcin,

    Yes it is possbile. Please have a look at this sample: http://jsbin.com/azihib/1/edit

    Regards,
    Holger
  3. Kendo UI is VS 2017 Ready
  4. Marcin
    Marcin avatar
    165 posts
    Member since:
    Jan 2011

    Posted 24 Jan 2013 Link to this post

    I would like to use dataSource as data, and I prefer not preserve that in any variable. I would like to obtain value from tab itself (e.g. from data-value attribute of tab)
  5. Holger
    Holger avatar
    77 posts
    Member since:
    Nov 2012

    Posted 24 Jan 2013 Link to this post

    AFAIK the TabStrip widget does not support binding to the DataSource component, thus you will either have to bind to local data (e.g. array) or initialize from HTML.

    Otherwise, when populating the TabStrip widget from data, how would like to apply a data-value attribute to the HTML?
  6. Marcin
    Marcin avatar
    165 posts
    Member since:
    Jan 2011

    Posted 24 Jan 2013 Link to this post

    Ach, I was thinking it can be used like other components with datasource. That's why I was supprised that I can find:
    dataTextField: "text",
    but cannot find:
    dataValueField: "value",
    and then with "onChange" method I can access to:
    this.value()
    but that retursn text instead of value.
Back to Top
Kendo UI is VS 2017 Ready