Declined
Last Updated: 21 Oct 2024 15:10 by Pedro
Pedro
Created on: 15 Oct 2024 14:49
Category: TextBox
Type: Feature Request
1
asp-for in TextBox with TagHelpers
I would like you to implement the asp-for attribute functionality in the TextBox element used with TagHelpers, i.e. <kendo-textbox asp-for="FieldOfModel" />. Currently it works using HtmlHelpers, with @(Html.Kendo().TextBoxFor(m => m.Email)) but if you use asp-for in a <kendo-textbox> it gives an error.
2 comments
Pedro
Posted on: 21 Oct 2024 15:10
Thank you Alexander!
ADMIN
Alexander
Posted on: 21 Oct 2024 10:38

Hi Pedro,

The Telerik UI for ASP.NET Core TagHelper exposes a built-in "for" attribute which acts as an "asp-for". Here is an example:

<kendo-textbox for="message">
      ...
</kendo-textbox>

I hope this helps.

Kind Regards,
Alexander
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.