Back to Devexpress

CalendarBuilder.CellTemplate(String) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-calendarbuilder-dot-celltemplate-x28-system-dot-string-x29.md

latest1.4 KB
Original Source

CalendarBuilder.CellTemplate(String) Method

Specifies the client-side cellTemplate.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public CalendarBuilder CellTemplate(
    string templateContent
)

Parameters

NameTypeDescription
templateContentString

A string that contains the template.

|

Returns

TypeDescription
CalendarBuilder

A reference to this instance after the method is called.

|

Remarks

This method allows you to specify a short template for a cell. Refer to the Templates article for more information and code examples.

cshtml
@(Html.DevExtreme().Calendar()
    .CellTemplate("Template content")
)

See Also

CalendarBuilder Class

CalendarBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace