ID for TabStrip Item

1 Answer 108 Views
TabStrip
Sean
Top achievements
Rank 1
Iron
Iron
Sean asked on 09 Jan 2023, 05:58 PM

Is there a solution for assigning a unique ID to a table strip item?  Currently I can see an example where you can reference the TabStip item name with the following however I need to assign a unique ID because the item name of my tabs can vary. The ordinal position can vary also.

$(e.item).find("> .k-link").text()

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 12 Jan 2023, 04:34 PM

Hello Sean,

 

Thank you for writing to us.

You can achieve this requirement using the following approach:

 .HtmlAttributes(new{ id = "ParisTab" })
Here is a live sample I've prepared for your convenience:
https://netcorerepl.telerik.com/GxOFlQvK33zp4NAJ07

P.S. I would like to also share this example with you as a bonus:
http://dojo.telerik.com/UMEZUhet

It is not specifically related to this case, but a fine example nevertheless.

 

Regards,
Eyup
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
TabStrip
Asked by
Sean
Top achievements
Rank 1
Iron
Iron
Answers by
Eyup
Telerik team
Share this question
or