Hello, I am looking to limit the length of "Comment" to 1000 characters. Adding custom style via HtmlAttributes does not apply it to the input attributes and I am unsure how. Any insight would be great.
@(Html.Kendo().Grid<SomeUI.Areas.Models.SomeCommentsModel>()
.Name("SomeCommentsGrid_#=PONum#_#=lineNum#")
.Columns(columns =>
{
columns.Bound(p => p.comment).Title("Comment").Width(100);
columns.Bound(p => p.updatedBy).Title("Updated By").Width(15).Editable("readOnlyCol");
columns.Bound(p => p.lastUpdated).Title("Last Updated").Width(25).Format("{0:MM/dd/yyyy}").Editable("readOnlyCol");
})
.ToolBar(toolbar => {
toolbar.Create();
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Single))
.Events(ev => ev.Change("onChange"))
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetSomeAccountingComments", "Some", new { LineNbr = "#=lineNum#", purchaseOrderNbr = "#=PONum#" }).Data("GetFacilityCode"))
.Sort(sort => sort.Add("lastUpdated").Descending())
.PageSize(10)
)
.Sortable()
.Pageable()
.Width(1000)
.ToClientTemplate())