Thursday, January 29, 2015

ASP.NET MVC EditorFor bug

I think I need Anger Management therapy after losing waaaaay to much time looking at a problem inside ASP.NET MVC.

What was the problem?

I created a nice ASP.NET MVC EditorTemplate to use the Kendo UI NumericTextBox for decimal fields. Here is the corresponding Razor file:

But for an unknown reason MVC wasn’t picking up the correct EditorTemplate. Here is the original code:

I had to update the code to include the EditorTemplate type to get it working:

Smells like a bug to me!

No comments: