I need to disable resizing for only one column in the kendo grid only. I saw the columnresize event, but I don't understand how to use it in the grid example below.
I noted that there is a similar question
My grid is
@(Html.Kendo().Grid<CCCAdmin.ViewModels.AdminReportViewModel>().Name("AdminReportGrid") .HtmlAttributes(new {@class = "table table-bordered"}) .Columns(columns => { columns.Bound(l => l.Id).Width("11%").Title("Id"); columns.Bound(l => l.CustomerName).Width("30%"); }).Resizable(r => r.Columns(true)) .Excel(excel => excel .FileName("Admin Report Export.xlsx") .Filterable(true) .ProxyURL(Url.Action("Excel_Export_Save", "AdminReport"))) .DataSource(dataSource => dataSource .Ajax().Read(read => read.Action("AdminReport_Read", "AdminReport")) .Destroy(update => update.Action("AdminReportDestroy", "AdminReport")) .Sort(sort => sort.Add("CallCounting").Descending()) .PageSize(20) .Model(model => { model.Id(a => a.Id); }) ) .Events(events => { events.DataBound("dataBound"); events.ExcelExport("onExcelExport"); } ) .ClientDetailTemplateId("CustomerInvoices") .Sortable() .Filterable() )
source share