FilterBuilderFieldBuilder<T>.EditorTemplate(TemplateName) Method

Specifies the client-side editorTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public FilterBuilderFieldBuilder<T> EditorTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
FilterBuilderFieldBuilder<T>

A reference to this instance after the method is called.

Remarks

This method applies an external template to an editor. Refer to External Templates for more information and code examples.

@(Html.DevExtreme().FilterBuilder()
    .Fields(fields => {
        fields.Add().EditorTemplate(new TemplateName("myFilterBuilderField_editorTemplate"));
    })
)

@using(Html.DevExtreme().NamedTemplate("myFilterBuilderField_editorTemplate")) {
    <div>
        Template content
    </div>
}
See Also