I am trying to do a simple test where a button click hides the first column of a grid. Unfortunately, there is a JavaScript error in the Kendo UI layer (2019.2.619) when my call happens. Is there some easy way to fix this?
The error:
Uncaught TypeError: Cannot read property 'style' of undefined
at init.hideColumn (kendo.all.js:65537)
at HTMLButtonElement.onclick (CustomerCode:312)
<
div
>
<
button
id
=
"toggler"
onclick
=
"$('#SomeGrid').data('kendoGrid').hideColumn(0);"
> Go </
button
>
</
div
>
<
div
>
Html.Kendo().ReadOnlyGrid(Model,
"SomeController",
ViewContext,
"SomeGrid",
...