Thursday, October 2, 2014

The Kendo Error Vortex

This is simple, but may save you a lot of grief.

I copied and pasted a kendo grid from one page to another and tweaked it for my needs.

It wasn't loading data, even though the grid appeared, so I tried calling the action methods and got errors.

Fiddler was showing that the json data was being called and passed ok, but the grid wasn't showing data, plus when you clicked add new button I'd either get an error about json serialization, or when I changed the action to handle that, it would just display all the json get data.

Long and short of it is, I finally realized that the page I had the grid on had another grid with the same name.  Renaming it solved the issues and the grid worked as expected.

First thing to check when you are debugging Kendo issues.  Otherwise the errors will lead you down a vortex.

No comments:

Post a Comment