How do you add a PopOver to a Kendo Button when using the MVC wrapper, will not let me add 'data-toggle' and 'data-content' to HtmlAttributes, if anyone has an example it would be appreciated, thanks.
2 Answers, 1 is accepted
0
Accepted
Misho
Telerik team
answered on 24 Dec 2019, 08:19 AM
Hi,
You need to apply the data attributes to HtmlAttributes using underscore, for example:
.HtmlAttributes(new { type = "button", data_content="My Content", data_toggle="popover"})
This is also valid for the ASP.NET MVC Html helpers in general: