My Love Hate Relationship with Kendo Grid — Part 1: The Broken Child Grid on Deployment

Iain Rough
1 min readSep 25, 2019

For years I have been involved in a love hate relationship with Telerik’s Kendo Grid. Hours have been wasted debugging small things and hours have been saved on massive tasks.

Some technical info on today's tryst with Kendo:
* UI for ASP.NET Core R2 2019 SP1
* Development machine windows 10
* Production Ubuntu 18.xx
* ASP.NET Core SDK: 2.2

One of the many joys of programming is discovering the feature that worked 100% on your local machine breaks on production(do i need sarcasm tags?).

This is the simple grid that broke on deployment

grid.cshtml

Everything worked on my local environment, the child grid bound, expanded and contracted, displayed all the correct data.

On production in developer console …

Uncaught SyntaxError: Invalid or unexpected token

Looking at inspect source, and the code that Kendo generates

generated editor template

Hmm… look at all the lovely line breaks. Wonder where they came from? If you looked at the grid code I posted earlier, you would have seen it was sloppy and rushed, with extra line breaks.

Turns out those extra line breaks caused my grid to break.

--

--

Iain Rough

Thoughts on things, not necessary unique or interesting