tapstrip encoded dataSource dataTextField

4 posts, 0 answers
  1. David
    David avatar
    17 posts
    Member since:
    Jul 2012

    Posted 20 Aug 2012 Link to this post

    hi,
    i'm using a dataSource for my kendoTapStrip, the dataTextField needs to be encoded for each tab.
    is it possible to apply a global setting in the config to encode all tab text fields?

    cheers,
    dave
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 23 Aug 2012 Link to this post

    Hello David,

    I am afraid there is no such options to enable encoding or decoding of the dataTextField ,dataContentField globally. However you can combine the usage of the map method of jQuery and the encode approach covered here. To encode each element before passing it to the dataSource.

    All the best,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. David
    David avatar
    17 posts
    Member since:
    Jul 2012

    Posted 29 Aug 2012 Link to this post

    well, the feature was available in an older version..
    i've added the following change to kendo.web.js
    Kendo UI Web v2012.2.823
    
     (line: 28702)

                    tab = {
                        text: text(view[idx]),
                        encoded: false
                    };

    that works.. i dont see why you would want to encode the headers? its restrictive
  4. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 03 Sep 2012 Link to this post

    Hello David,

    As I replied in my previous post I am not aware of an option to set the encoding for all the items in the TabStrip.
    You can enable encoding of the item if you add the items with the insertAfter, insertBefore or the append methods.

    Regards,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top