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

ChatToolbarSettingsBuilder

Methods

Animation(System.Boolean)

Configures the animation effects of the Kendo UI Chat toolbar.

Parameters

enable - System.Boolean

Whether the component animation is enabled.

Example


            @( Html.Kendo().Chat()
                        .Name("Chat")
                        .Toolbar(toolbar => {
                            toolbar.Animation(false);
                         })
            )             

Animation(System.Action)

Configures the toolbar's toggle animation effects.

Parameters

animationAction - System.Action<ExpandableAnimationBuilder>

The action that configures the animation.

Example


            @( Html.Kendo().Chat()
                        .Name("Chat")
                        .Toolbar(toolbar => {
                            toolbar.Animation(animation => animation.Expand(config => config.Fade(FadeDirection.In)))
                        })
            )            

Scrollable(System.Boolean)

Enables/disables the scrollable feature of the Chat toolbar.

Parameters

enable - System.Boolean

Whether the scrollable is enabled.

Example


            @( Html.Kendo().Chat()
                        .Name("Chat")
                        .Toolbar(toolbar => {
                            toolbar.Scrollable(false);
                         })
            )             

Toggleable(System.Boolean)

Enables/disables the toggleable feature of the Chat toolbar.

Parameters

enable - System.Boolean

Whether the toggleable is enabled.

Example


            @( Html.Kendo().Chat()
                        .Name("Chat")
                        .Toolbar(toolbar => {
                            toolbar.Toggleable(false);
                         })
            )             

Buttons(System.Action)

Configures the Chat's toolbar buttons.

Parameters

action - System.Action<ChatToolbarButtonsFactory>

The buttons builder.

Example


            @( Html.Kendo().Chat()
                        .Name("Chat")
                        .Toolbar(toolbar => {
                              toolbar.Buttons(buttons => buttons
                                  .Add("button")
                                  .Add(buttons => button.Name("button2").IconClass("k-icon k-i-gear"))
                              );
                         })
            )             

In this article
Not finding the help you need?