Localization

You can customize the Messages() for each toolbar command button of the ListBox.

These messages serve as tooltip text when the user hovers over the buttons.

    @(Html.Kendo().ListBox()
        .Name("optional")
        .DataTextField("ContactName")
        .DataValueField("CustomerID")
        .DataSource(source => source
            .Read(read => read.Action("GetCustomers", "ListBox"))
        )
        .Messages(m=>m.Tools(tools=>
            {
                tools.MoveUp("Promote");
                tools.MoveDown("Demote");
                tools.Remove("Remove Employee");
                tools.TransferTo("Transfer To");
                tools.TransferAllTo("Transfer All To");
                tools.TransferFrom("Transfer From");
                tools.TransferAllFrom("Transfer All From");
            })
        )
        .TemplateId("customer-item-template")
        .Draggable(draggable => draggable.Placeholder("customPlaceholder"))
        .DropSources("selected")
        .ConnectWith("selected")
        .Selectable(ListBoxSelectable.Single)
        .Toolbar(toolbar =>
        {
            toolbar.Position(ListBoxToolbarPosition.Right);
            toolbar.Tools(tools => tools
                .TransferTo()
                .Remove());
        })
        .BindTo(new List<CustomerViewModel>())
    )

See Also

In this article
Not finding the help you need? Improve this article