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

EditorFor strange bahavior

3 Answers 76 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
IBST
Top achievements
Rank 1
IBST asked on 05 Apr 2011, 06:45 PM
I have this code in ASP.NET MVC3

@Html.Telerik().EditorFor(x => x.Email)

and the result it's in attach. Why I get the list of methods insted of the Editor?

Paulo Aboim Pinto
Odivelas - Portugal

3 Answers, 1 is accepted

Sort by
0
Francois Vanderseypen
Top achievements
Rank 2
answered on 20 May 2011, 03:03 PM
+1 Same behavior on this side (MVC3/Razor/EditFor). The editor is crooked when using it in this fashion.
Something CSS or something deeper? I cannot make out.

0
Francois Vanderseypen
Top achievements
Rank 2
answered on 20 May 2011, 03:24 PM
Solution found. Right-click your project and use the project configuration wizard. This alters the _Layout.cshtml file with something like
@(Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.css").Add("telerik.office2010black.css").Combined(true).Compress(true)))

So, indeed, there is a CSS issue somewhere if things are not configured properly.
0
Bill Deihl
Top achievements
Rank 2
answered on 26 Feb 2012, 04:42 PM
Merci Francois .
It appears also the wizard does not respect the contents of the _ViewStart.cshtml.
Your post steered me back to the default _layout.cshtml. The Telerik registration was there and I just needed to copy it the active _layout*.

Your solution was very helpful.
Bill
Tags
Editor
Asked by
IBST
Top achievements
Rank 1
Answers by
Francois Vanderseypen
Top achievements
Rank 2
Bill Deihl
Top achievements
Rank 2
Share this question
or