I have attached the code plus the error message.
kendo support us in 2 ways to declare control in razor view.
- @(
Html.Kendo().DatePicker
)
- @{
Html.Kendo().DatePicker()
.Render();
}
but with the second if I add HtmlAttribute with 4 attribute inside, it will get error.
ex: @{
Html.Kendo().DatePicker()
.HtmlAttribute(new {a="id1", b ="id2", c="id3", d="id4"})
.Render();
}
The error attached in DatePicker2.jpeg based on case 2.