I have a DataSet that I'm generating on the fly.
I'm doing this by collecting all of my data and then building a DataTable and then using the DataTable as a DataSource for my Kendo Grid.
The Grid is set up to use AutoGenerated columns, like this ...
@(Html.Kendo().Grid(Model.Data)
.Name(
"grid"
)
.Columns(c =>
{
c.AutoGenerate(
true
);
}
.Scrollable()
.Resizable(a =>
{
a.Columns(
true
);
})
)
I want to freeze the first column in this Grid (I will always know what this column is).
I haven't found a way of manipulating the Columns at all when using AutoGenerated columns and have had to resort to a number of jQuery/CSS 'fudges' to get the Grid looking and behaving the way that I want it to.
However, I'm at a loss as to how I might be able to freeze a column when the Grid uses AutoGenerated columns.
Is is actually possible?
If it is, would you care to give me a hint as to how I might go about it?