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

how to add data attribute

1 Answer 711 Views
Button
This is a migrated thread and some comments may be shown as answers.
moegal
Top achievements
Rank 1
moegal asked on 12 Oct 2020, 04:23 PM
    
 

How do I add data attributes?

Like:

data-filter=".lap"

 

Thanks, Marty

 

FYI, I am having issues posting in the forum as well in chrome

 

1 Answer, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 15 Oct 2020, 08:56 AM

Hi Moegal,

The data-filter can be added as it is demonstrated below:

@(Html.Kendo().Button()
        .Name("primaryTextButton")
        .HtmlAttributes(new { type = "button", @class = "k-primary", data_filter=".lap" })
        .Content("Primary Button"))

Talking about the submission of your posts here, can you give me more details about the issue? 

Regards,
Petar
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
Button
Asked by
moegal
Top achievements
Rank 1
Answers by
Petar
Telerik team
Share this question
or