Hello,
Is there any way to change the <input> attr to <textarea></textarea> in popup?
I have gotten as far as doing some basic jquery removeClass and replaceWith. that seems to do the trick it to show the box,
but not the data.
I know there is an example in how to do it in grid for jquery. But I am trying to see if there is another solution in mvc grid.
Any help is greatly appreciated.
Thank you,
Andi.
Hey guys,
I think it is a bug because the requried validation attribute is not rendered when using tag helper. Can you validate my problem?
Kendo version: 2022.1.119
Model:
[Required(ErrorMessage = "Hey, I am an error message.")]
public string Test { get; set; }
View (working example with html helper):
@Html.Kendo().TextAreaFor(x => x.Test).Rows(3)
View (not working example with tag helper):
<kendo-textarea name="Test" rows="3"></kendo-textarea>
The data-val="true" data-val-required="xxx" attributes are only rendered with html helper.
Hi,
When adding a textarea to a form, I get different html rendered result:
<
kendo-textarea
name
=
"reason-reject"
rows
=
"5"
placeholder
=
"Specify rejection reason"
on-change
=
""
>
</
kendo-textarea
>
@(Html.Kendo().TextArea()
.Name("invitation")
.Placeholder("Enter your text here.")
.Rows(10)
.MaxLength(200)
.HtmlAttributes(new { style = "width: 100%", required = true, data_required_msg = "Please enter a text.", data_max_msg= "Enter value between 1 and 200" })
)
Even using the simple form of widget from the samples, generated invalid html.... Can you provide any guidance ?
Is is possible with taghelper, mark the control as mandatory ?
Any help will be highly appreciated,
Manuel