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

Defines the fluent API for configuring the ChatMessageBoxSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChatMessageBoxSettingsBuilder

Inheritance: objectChatMessageBoxSettingsBuilder

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

Constructors

C#
public ChatMessageBoxSettingsBuilder(ChatMessageBoxSettings settings)
Parameters:settingsChatMessageBoxSettings

The ChatMessageBoxSettings

Methods

Defines a custom template for the end affix area of the built-in message box. The end affix is positioned after the input field and alongside the built-in action area. This option applies when messageBoxTemplate is not set.

C#
public ChatMessageBoxSettingsBuilder EndAffixTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the endaffixtemplate.

Returns:

ChatMessageBoxSettingsBuilder

Defines a custom template for the end affix area of the built-in message box. The end affix is positioned after the input field and alongside the built-in action area. This option applies when messageBoxTemplate is not set.

C#
public ChatMessageBoxSettingsBuilder EndAffixTemplateHandler(string value)
Parameters:valuestring

The value that configures the endaffixtemplate.

Returns:

ChatMessageBoxSettingsBuilder

The maximum height of the textarea in pixels. When set, the textarea will stop expanding and show a scrollbar.

C#
public ChatMessageBoxSettingsBuilder MaxTextAreaHeight(double value)
Parameters:valuedouble

The value that configures the maxtextareaheight.

Returns:

ChatMessageBoxSettingsBuilder

The input mode for the message box: "single": Single-line text input; "multi": Multi-line textarea with fixed rows or "auto": Auto-expanding textarea that grows as the user types.

C#
public ChatMessageBoxSettingsBuilder Mode(string value)
Parameters:valuestring

The value that configures the mode.

Returns:

ChatMessageBoxSettingsBuilder

The initial number of visible rows when mode is "multi".

C#
public ChatMessageBoxSettingsBuilder Rows(double value)
Parameters:valuedouble

The value that configures the rows.

Returns:

ChatMessageBoxSettingsBuilder

Defines a custom template for the start affix area of the built-in message box. The start affix is positioned before the input field. This option applies when messageBoxTemplate is not set.

C#
public ChatMessageBoxSettingsBuilder StartAffixTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the startaffixtemplate.

Returns:

ChatMessageBoxSettingsBuilder

Defines a custom template for the start affix area of the built-in message box. The start affix is positioned before the input field. This option applies when messageBoxTemplate is not set.

C#
public ChatMessageBoxSettingsBuilder StartAffixTemplateHandler(string value)
Parameters:valuestring

The value that configures the startaffixtemplate.

Returns:

ChatMessageBoxSettingsBuilder

Defines a custom template for the top affix area of the built-in message box. The top affix is rendered above the content area and is visible in multi-line mode only. This option applies when messageBoxTemplate is not set.

C#
public ChatMessageBoxSettingsBuilder TopAffixTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the topaffixtemplate.

Returns:

ChatMessageBoxSettingsBuilder

Defines a custom template for the top affix area of the built-in message box. The top affix is rendered above the content area and is visible in multi-line mode only. This option applies when messageBoxTemplate is not set.

C#
public ChatMessageBoxSettingsBuilder TopAffixTemplateHandler(string value)
Parameters:valuestring

The value that configures the topaffixtemplate.

Returns:

ChatMessageBoxSettingsBuilder