TemplateBuilder

Properties

WriteAction - Func

Methods

AddHtml(System.String)

Allows setting conventional HTML elements.

Parameters

html - System.String

The value that configures the HTML content.

Example

Razor
 
            @(Html.Kendo().Template()
                   .AddHtml("<p>HTML content</p>")
             )
             

AddHtml(System.Func)

Allows setting combining conventional HTML elements with HtmlHelpers coming from the web framework.

Parameters

html - System.Func<Object,Object>

The value that configures the HTML content.

Example

Razor
 
            @(Html.Kendo().Template()
                   .AddHtml(@<text><p>HTML content</p></text>)
             )
             

AddComponent(System.Action)

Defines a Telerik UI component into the template.

Parameters

widgetBuilder - System.Action<WidgetFactory>

The action that defines the Telerik UI component.

Example

Razor
 
            @(Html.Kendo().Template()
                   .AddComponent(c => c.Button().Name("testBtn").Content("Settings"))
             )
             

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder