This is a migrated thread and some comments may be shown as answers.

Edit template search path

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
oliwa
Top achievements
Rank 1
oliwa asked on 23 Jan 2012, 05:07 AM
I created an edit template for the grid but when I put it in the same directory as my index view the grid didn't use it.  I even tried setting the template name in the GridEditingSettingsBulder.  Maybe I'm wrong, but I thought MVC searched the local directory before looking in the Shared folders.

Ironically when I created a custom toolbar partial view the grid did look in the local directory but on second thought this is probably because I rendered the view using an MVC Html helper.

http://www.aspnetmvcninja.com/views/view-search-paths

Thanks

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 23 Jan 2012, 09:22 AM
Hi,

 ASP.NET MVC editor templates must reside in a special folder called EditorTemplates. We are not sure if this behavior can be configured as it is a built-in ASP.NET MVC feature.

You can find more info about editor templates in this series of blog posts.

Regards,
Atanas Korchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
oliwa
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or