How to use MVC Templates for DevExpress

See also Template description and use

What you need

1. Microsoft Visual Studio 2010 (we are not aware of any reason for non-compatibility with the VS 2008. We had no opportunity to test.)

2. DevExpress trial or licensed version of any package that does include MVC Extensions for ASP.NET MVC. We tested with Developer Express V2010 vol 2.

What you do

1. Pull the most recent version from the code repository (there are instructions.)

2. Navigage to the MVC template forlder of Visual Studio, for example:
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Web\MVC 2\

3. The structure of our folders should match the structure of folders on your VS template subfolders. Move the contents of the \CodeTemplates\AddView\*.tt.

NOTE for MVC3 the path (beside changing the MVC 2 to MVC 3) is extended by an AspxCSharp or CSHTML subfolder in the AddView as in:
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Web\MVC 3\CodeTemplates\AddView\AspxCSharp\*.tt

How to use

1. Open Visual Studio

2. Open existing ASP MVC 2 project (or create a new one.)

3. Open source of controller class (or create one.) Rightclick inside of any bublic method of the controller, select Add View...

4. Check the "Create Partial View (.ascx): and also "Create strongly-typed view". Select the View data class.

5. Select "ListPartialWithDevxGridView" in the "View content".

6. Enjoy!


Continue at Template description and use

Last edited Nov 26, 2013 at 9:23 PM by raghuariga, version 23


No comments yet.