Skip to main content

FilterBuilderCustomOperationBuilder.EditorTemplate(TemplateName) Method

Specifies the client-side editorTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public FilterBuilderCustomOperationBuilder EditorTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
FilterBuilderCustomOperationBuilder

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()
    .CustomOperations(customOperations => {
        customOperations.Add().EditorTemplate(new TemplateName("myFilterBuilderCustomOperation_editorTemplate"));
    })
)

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