Soldato
- Joined
- 27 Mar 2003
- Posts
- 2,710
So over the past 12 - 15 months I have been making the transition from webforms to MVC and although I wouldn't consider myself a complete MVC developer yet I have picked up so much over this journey.
Some of the great things that I have had the pleasure to use are Twitter's Bootstrap framework and Telerik's Kendo UI toolsets, these have made so much of the crud work enjoyable. Although these tools give me a nice quick way of setting up sites and getting something that looks nice in a matter of hours rather than days (I'm not the greatest designer) and to top it of my lack of jquery and javascript skills have improved so much by using both these products.
But one thing has irritated me in this modern web world is the default
@Html.ValidationSummary() helper
After spending the time to make my site look really nice I am left feeling frustrated at the lack of improvement that MS has done on this helper (having found loads of other developers looking for solutions on the likes of stackoverflow and not really finding anything that works for me).
So I thought I would take some time and make a bootstrapped version that can be customised to show the standard viewmodel errors but also custom errors that are added to the modelstate.
So I have put a project on github to hopefully provide something that is more in keeping with a bootstrap themed site (but can be customised to take other custom classes)
https://github.com/JellyMaster/MVCBootstrap
wiki (with some images of how this thing looks)
https://github.com/JellyMaster/MVCBootstrap/wiki/BootStrapped-Validation-Summary
So please feel free to try it out and let me know if I am doing anything horrendously wrong or could do something better.
I wanted something that was simple to implement but gave the developer (i.e me) a way of customizing the look and feel if required.
In addition I also added a simple way to indicate required fields as this was something that I miss from the webform days but didn't want to have to rewrite the same code over and over again for view models.
(I'm still not happy with how this works but I would be grateful for pointers to make this function better.)
Thanks for taking the time to look and if you think it will be of use to you please share.
Some of the great things that I have had the pleasure to use are Twitter's Bootstrap framework and Telerik's Kendo UI toolsets, these have made so much of the crud work enjoyable. Although these tools give me a nice quick way of setting up sites and getting something that looks nice in a matter of hours rather than days (I'm not the greatest designer) and to top it of my lack of jquery and javascript skills have improved so much by using both these products.
But one thing has irritated me in this modern web world is the default
@Html.ValidationSummary() helper
After spending the time to make my site look really nice I am left feeling frustrated at the lack of improvement that MS has done on this helper (having found loads of other developers looking for solutions on the likes of stackoverflow and not really finding anything that works for me).
So I thought I would take some time and make a bootstrapped version that can be customised to show the standard viewmodel errors but also custom errors that are added to the modelstate.
So I have put a project on github to hopefully provide something that is more in keeping with a bootstrap themed site (but can be customised to take other custom classes)
https://github.com/JellyMaster/MVCBootstrap
wiki (with some images of how this thing looks)
https://github.com/JellyMaster/MVCBootstrap/wiki/BootStrapped-Validation-Summary
So please feel free to try it out and let me know if I am doing anything horrendously wrong or could do something better.
I wanted something that was simple to implement but gave the developer (i.e me) a way of customizing the look and feel if required.
In addition I also added a simple way to indicate required fields as this was something that I miss from the webform days but didn't want to have to rewrite the same code over and over again for view models.
(I'm still not happy with how this works but I would be grateful for pointers to make this function better.)
Thanks for taking the time to look and if you think it will be of use to you please share.