Blog Archives

Some tips for using Telerik MVC Controls

I have been using the controls suite now in 2 projects and over 6 months (and the full aspnet controls for more than 3 years.). These are some important things I heave learned that makes my life a lot easier when coding with the controls.

1. Follow the telerik examples online….word for word, untill you completely understand what is being done. This is especially true in master detail tables, and or in ajax grids from the control suite. The ajax errors are really a pain to identify as it just says “Did not return JSON“. This is almost ALWAYS because you don’t have to correct scripts loaded for client side ajax processing in the grid or you didn’t follow the example online, and then waste hours solving a small mistake.

2.  If you are using EF (entity framework) for you data domain modelling infrastructure (data access), then once you have scaffolded your repositories and views, if you want ajax grids, create your own viewmodels. This will save you alot of trouble. This is because EF objects are not automatically serializable into a JSON request. You have to either build a helper class to do it, or as i suggest, create your own view models.

3. Be part of the community. Don’t be a hater. Some members of your team may approach the project with a negative attitude and yes, then they do take long completing simple tasks like a crud screen, that is their fault not Telerik. Telerik can’t be blamed for a developers incompetence and lack of willingness to learn.

There are a few more tips, however they are more technical and I will soon post them. Just thought I’d get you started and committed to using the great controls that Telerik has to offer.



%d bloggers like this: