Completed
Last Updated: 18 Jan 2024 10:16 by ADMIN
Release 2024 Q1

Bug report

DropDownTree TagHelper throws error when the BindTo configuration is set.

Reproduction of the problem

  1. Open the following Telerik REPL example.
  2. Create mocked DropDownTreeItemBase data that will be populated within the bind-to TagHelper attribute.
  3. Notice the observed error.

Current behavior

Setting the bind-to TagHelper attribute produces the following error

One or more errors occurred. (Object reference not set to an instance of an object.)

Expected/desired behavior

Setting the bind-to should not produce a run-time error.

Environment

  • Kendo UI version: 2023.3.1114
  • Browser: [all]
Completed
Last Updated: 18 Jan 2024 10:15 by ADMIN
Release 2024 Q1

Bug report

DropDownTree is not serialized correctly when declared in the Template component.

Reproduction of the problem

  1. Open the following Telerik REPL.
  2. Notice that the DropDowntTree component declared in the Template for the CustomerRating field is not serialized with its options correctly.

Current behavior

The DropDownTree is not serialized correctly when declared in the Template component.

Expected/desired behavior

The DropDownTree is not serialized correctly when declared in the Template component.

Environment

  • Kendo UI version: 2023.1.1114
  • Browser: [all]
Completed
Last Updated: 10 Nov 2020 13:46 by ADMIN
Release 2020.R3.SP.next

Bug report

DropDownTreeItemModel does not properly pass its HtmlAttributes members on populating DropDownTree with BindTo()

Reproduction of the problem

In .Net Core application, implement the following view:

@(Html.Kendo().DropDownTree()
    .Name("kendoTreeItems")
    .BindTo((IEnumerable<DropDownTreeItemModel>)ViewBag.Items)
)

and the following controller:

public IActionResult Index()
{
    ViewBag.Items = GetItems();
    return View();
}

public IEnumerable<DropDownTreeItemModel> GetItems()
{
    IDictionary<string, string> attributes = new Dictionary<string, string>
    {
        { "style", "background: red" }
    };

            List<DropDownTreeItemModel> items = new List<DropDownTreeItemModel>
    {
        new DropDownTreeItemModel { Text = "Item 1", HtmlAttributes = attributes },
        new DropDownTreeItemModel { Text = "Item 2", HtmlAttributes = attributes },
        new DropDownTreeItemModel { Text = "Item 3", HtmlAttributes = attributes },
        new DropDownTreeItemModel { Text = "Item 4", HtmlAttributes = attributes },
    };

    return items;
}

Current behavior

The HTML attributes will not be passed to the DropDownTree items.

Expected/desired behavior

The HTML attributes should be passed and present in the DropDownTree items.

Environment

  • Kendo UI version: 2020.1.219
  • Browser: [all]