Showing WebAPI Validation Errors with ExtJS 6


Let’s say you use model validation with ASP.NET WebAPI and you are serving a client side application written in Sencha’s ExtJS.  To show those errors like this: You need to add a ValidationActionFilter to your startup code as follows: [crayon-587e6d081d2a4013239883/] [crayon-587e6d081d2c0243160586/] And then, you can have your ExtJS code do something like the following to display the error: [crayon-587e6d081d2cc894154129/] [crayon-587e6d081d2d5677829075/] And you can run it yourself at the Sencha Fiddle: HTH's … Continue Reading


Get every new post delivered to your Inbox

Join other followers: