Skip to main content
A newer version of this page is available. .
ID

GanttBuilder<T>.TaskContentTemplate(JS) Method

Mirrors the client-side taskContentTemplate option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttBuilder<T> TaskContentTemplate(
    JS value
)

Parameters

Name Type Description
value JS

A JavaScript function that specifies the template.

Returns

Type Description
GanttBuilder<T>

A reference to this instance after the method is called.

Remarks

This method allows you to define a template using a JavaScript function.

Run Demo: Gantt - Task Template

Refer to JavaScript Functions as Templates for more information.

@(Html.DevExtreme().Gantt()
    .TaskContentTemplate(new JS("my_template"))
)

<script>
    function my_template() {
        // Template rendering logic
    }
</script>
See Also