Hello,
I'm creating a grid using Razor syntax and would like to lock the left column
@(Html.Kendo().Grid(Model.GridData)
.Name(GridID)
.Columns(columns =>
{
columns.Template(o => o).ClientTemplate("<a class='k-button k-grid-details'>...</a>").Width(15).Locked(true);
When I run the grid with .Locked(true) as part of that column definition, the grid doesn't load. I only see the loading icon and the website hangs.
Please let me know what's wrong with my syntax. I've seen threads saying that the grid doesn't allow locked columns with templates, but the example was a hierarchical grid. My grid is not a hierarchy.
I'm trying to ensure that the left most column stays a constant width. It doesn't need to be locked necessarily, I just don't want it to get narrower if the window size changes. The grid must be 'Scrollable' so that the headers are always visible at the top.
Thanks in advance, and let me know if I can provide any more information.