MVC

April 13, 2016

January 28, 2016

Creating a collapse all, expand all button on the Kendo UI Grid

By |2016-01-28T16:39:25+00:00January 28th, 2016|Categories: ASP.NET, MVC, Telerik|

The Kendo UI grid has some great functionality out of the box, especially it's ability to handle hierarchcal data with detail item templates. I wanted to include a expand/collapse all button right within my grid. Here was the code I used to do it. Credit to Daniël from http://www.telerik.com/forums/collapse-all-grid-rows on giving me the code I needed [...]

Preventing Enter button from expanding detail rows on Kendo UI Grid

By |2016-01-20T09:47:29+00:00January 20th, 2016|Categories: ASP.NET, MVC, Telerik|

Admittedly this is a pretty custom/specific use of the Kendo UI Grid, but just in case someone else needs to do this type of thing, you never know... Scenario: I have an application that makes use of the Kendo UI grid. Specifically the hierarchacal version of the grid with expanding detail rows. The grid uses inline [...]

September 24, 2015

Selenium vs Coded UI Thoughts

By |2015-09-24T16:41:06+00:00September 24th, 2015|Categories: C#, MVC, Testing|

I should mention that this is not intended to be a full in-depth review and comparison of the two UI testing frameworks, just a quick post on my general thoughts after using both of them on the same project. I have recently started work on introducing some basic automated UI tests to one of our solutions. [...]

June 13, 2015

Unobtrusive Validation with Kendo UI DropDownList

By |2018-03-05T22:29:42+00:00June 13th, 2015|Categories: ASP.NET, Misc. Fixes, MVC, Telerik|

Really short post here. If you are trying to use jQuery unobtrusive validation with Kendo UI's DropDownList , you might notice that it doesn't work right out of the box. The form will simply validate, and will not actually check your selected value. This is a pain if you're trying to validate that a field is required. [...]

VSLive 2015 in Austin, TX!

By |2018-06-27T17:47:50+00:00June 4th, 2015|Categories: ASP.NET, C#, General Technology, IIS, MVC, SQL Server, Testing|Tags: , |

I'm writing this post from the Austin airport as I'm getting ready to head home after a very educational 4 days in Austin for VSLive 2015. I wanted to quickly write down a lot of key points from all of the sessions I attended. I figure writing about something is a good way to retain a [...]

May 14, 2015

February 3, 2015

Custom 401 error pages in MVC alongside Windows Authentication

By |2018-03-05T22:32:04+00:00February 3rd, 2015|Categories: ASP.NET, IIS, MVC|Tags: , , |

We use windows authentication for a lot of our web apps, but also want to serve up a custom 401 error page when users are not authorized to log in. This is tricky because this specific 401 error is handled directly by IIS, rather than the application itself, because it's a windows directory permission. I spent [...]

January 3, 2015

Libraries for Unit Testing MVC5 Controllers

By |2015-01-03T17:25:04+00:00January 3rd, 2015|Categories: C#, General Technology, MVC, Testing|Tags: , |

There are various libraries available to help you unit test your controller actions, returned views and models, and action results with MVC. One that I have recently started using is TestStack.FluentMVCTesting. This library allows you to perform actions on your controllers within your unit tests, and then verify, with a fluent syntax, that those actions behaved [...]

April 24, 2014

MVC Model Binding with an Ajax Form Submit

By |2014-04-24T16:19:52+00:00April 24th, 2014|Categories: C#, MVC|Tags: , , , , |

You may come across a time where you would like to submit a form using Ajax, and still want to preserve the useful model binding of MVC. Normally when you submit a form using a standard submit (non async), the MVC framework will automatically take care of pulling your values out of your form and populating [...]