I have the following grid:
@(Html.Kendo().Grid<MyApp.WebUI.Models.MyModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(m => m.codeType).ClientTemplate("#=codeType.code_type#").Width(75);
columns.Bound(m => m.codeVersion).ClientTemplate("#=codeVersion.code_version#").Width(75);
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
.Events(events => events.DataBound("onDataBound"))
Both columns use a combo box for the EditorTemplate.
I am looking for a solution that disables the 2nd column on default. Then based on value selected for 1st column, column 2 is either enabled or stays disabled.
Any guidance would be much appreciated.
@(Html.Kendo().Grid<MyApp.WebUI.Models.MyModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(m => m.codeType).ClientTemplate("#=codeType.code_type#").Width(75);
columns.Bound(m => m.codeVersion).ClientTemplate("#=codeVersion.code_version#").Width(75);
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
.Events(events => events.DataBound("onDataBound"))
Both columns use a combo box for the EditorTemplate.
I am looking for a solution that disables the 2nd column on default. Then based on value selected for 1st column, column 2 is either enabled or stays disabled.
Any guidance would be much appreciated.