Version

EditorFor<TProperty>(Expression<Func<TModel,TProperty>>,IDictionary<String,Object>) Method

Helper to configure a strongly typed editor widget for a specific property of the model.
Syntax
'Declaration
 
Public Overloads Function EditorFor(Of TProperty)( _
   ByVal expression As System.Linq.Expressions.Expression(Of Func(Of TModel,TProperty)), _
   ByVal htmlAttributes As System.Collections.Generic.IDictionary(Of String,Object) _
) As System.Web.Mvc.MvcHtmlString
public System.Web.Mvc.MvcHtmlString EditorFor<TProperty>( 
   System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression,
   System.Collections.Generic.IDictionary<string,object> htmlAttributes
)

Parameters

expression
The expression for a property of the model.
htmlAttributes
Setter for HtmlAttributes property

Type Parameters

TProperty
The type of the property.

Return Value

Html string that will render igEditor or igCombo control based on the type
Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub