New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent interface for configuring a widget with deferred initialization.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TViewComponent

The view component.

Syntax:

C#
public class DeferredWidgetBuilder<TViewComponent> : HelperResult, IHtmlContent where TViewComponent : WidgetBase

Inheritance: objectHelperResultDeferredWidgetBuilder<TViewComponent>

Implements: IHtmlContent

Inherited Members HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the DeferredWidgetBuilder<TViewComponent> class.

C#
public DeferredWidgetBuilder(TViewComponent component)
Parameters:componentTViewComponent

Properties

Component

TViewComponent

Gets the view component.

C#
protected TViewComponent Component { get; set; }
Property Value:

The component.

Methods

Renders the component in place.

C#
public virtual void Render()

Returns the client template for the component.

C#
public virtual HtmlString ToClientTemplate()
Returns:

HtmlString

Returns the internal view component.

C#
public TViewComponent ToComponent()
Returns:

TViewComponent

The TViewComponent instance that represents the widget.

Returns the HTML representation of the component.

C#
public virtual string ToHtmlString()
Returns:

string

C#
public override void WriteTo(TextWriter writer, HtmlEncoder encoder)
Parameters:writerTextWriterencoderHtmlEncoder

Overrides: HelperResult.WriteTo(TextWriter, HtmlEncoder)