Telerik Kendo MVC TextBox Multi-Line Mode

Does anyone know what properties need to be configured to create a multi-line Kendo MVC text field?

@(Html.Kendo().TextBox() .Name("txtComments") .Value(@Model.Comments) .HtmlAttributes(new { style = "width:100%" }) ) 

Thanks.

+5
source share
1 answer

If you want textarea , I would recommend doing this as follows:

 @Html.TextArea("textarea", "", new { @class="k-textbox", style = "width: 100%;" }) 

as their demo shows. This will allow you to get the same Kendo style if that's what you are going to do.

+11
source

Source: https://habr.com/ru/post/1241047/


All Articles