I have been using Telerik MVC Grid for quite a while now and It is a great control, however, one annoying thing keeps showing up related to using the grid with Ajax Binding to o
Another good pattern is to simply not avoid creating a ViewModel
from the Model.
It is a good pattern to include a ViewModel
. It gives you the opportunity to make last minute UI related tweaks to the model. For example, you can tweak a bool to have an associated string Y
or N
to help make the UI look nice, or vice versa.
Sometimes the ViewModel
is exactly like the Model and the code to copy the properties seems unnecessary, but the pattern is a good one and sticking to it is the best practice.