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

Defines the fluent API for configuring ChatToolbarSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
[Obsolete("This option is obsolete since Q3 2025 and will be removed in future releases.")]
public class ChatToolbarSettingsBuilder

Inheritance: objectChatToolbarSettingsBuilder

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

Constructors

ChatToolbarSettingsBuilder method.

C#
public ChatToolbarSettingsBuilder(ChatToolbarSettings container)
Parameters:containerChatToolbarSettings

Properties

Gets the settings being configured.

C#
protected ChatToolbarSettings Container { get; }

Methods

Configures the toolbar's toggle animation effects.

C#
public ChatToolbarSettingsBuilder Animation(Action<ExpandableAnimationBuilder> animationAction)
Parameters:animationActionAction<ExpandableAnimationBuilder>

The action that configures the animation.

Returns:

ChatToolbarSettingsBuilder

Returns the current instance of ChatToolbarSettingsBuilder for method chaining.

Example:
C#
@( Html.Kendo().Chat()
.Name("Chat")
.Toolbar(toolbar =&gt; {
toolbar.Animation(animation =&gt; animation.Expand(config =&gt; config.Fade(FadeDirection.In)));
}))

Configures the animation effects of the Kendo UI Chat toolbar.

C#
public ChatToolbarSettingsBuilder Animation(bool enable)
Parameters:enablebool

Whether the component animation is enabled.

Returns:

ChatToolbarSettingsBuilder

Returns the current instance of ChatToolbarSettingsBuilder for method chaining.

Example:
C#
@( Html.Kendo().Chat()
.Name("Chat")
.Toolbar(toolbar =&gt; {
toolbar.Animation(false);
}))

Defines the collection of buttons that will be rendered. When using only an array of strings, the added string will define the name option of the button.

C#
public ChatToolbarSettingsBuilder Buttons(Action<ChatToolbarSettingsButtonFactory> configurator)
Parameters:configuratorAction<ChatToolbarSettingsButtonFactory>

The ChatToolbarSettingsButtonFactory for the buttons setting.

Returns:

ChatToolbarSettingsBuilder

Returns the current instance of ChatToolbarSettingsBuilder .

Enables or disables the scrollable behavior of the toolbar.

C#
public ChatToolbarSettingsBuilder Scrollable(bool value)
Parameters:valuebool

The value for Scrollable

Returns:

ChatToolbarSettingsBuilder

Returns the current ChatToolbarSettingsBuilder instance.

Enables or disables the toggleable behavior of the toolbar.

C#
public ChatToolbarSettingsBuilder Toggleable()
Returns:

ChatToolbarSettingsBuilder

Returns the current ChatToolbarSettingsBuilder instance.

Enables or disables the toggleable behavior of the toolbar.

C#
public ChatToolbarSettingsBuilder Toggleable(bool value)
Parameters:valuebool

The value for Toggleable

Returns:

ChatToolbarSettingsBuilder

Returns the current ChatToolbarSettingsBuilder instance.