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

tapstrip encoded dataSource dataTextField

3 Answers 97 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 20 Aug 2012, 01:47 PM
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

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 23 Aug 2012, 07:15 AM
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!
0
David
Top achievements
Rank 1
answered on 29 Aug 2012, 11:46 AM
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
0
Petur Subev
Telerik team
answered on 03 Sep 2012, 11:59 AM
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!
Tags
TabStrip
Asked by
David
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
David
Top achievements
Rank 1
Share this question
or