Completed
Last Updated: 04 May 2022 08:40 by ADMIN
Release 2021.R3.SP2
Miro
Created on: 20 Jul 2021 12:51
Category: TreeList
Type: Bug Report
1
Setting the HeaderHtmlAttributes of the TreeList throws a Null reference exception

Bug report

Setting the HeaderHtmlAttributes of the TreeList throws a Null reference exception.

Reproduction of the problem

  1. In the Multi-column headers Demo of the Treelist try adding HeaderHtmlAttributes to a Group:
@(Html.Kendo().TreeList<Kendo.Mvc.Examples.Models.TreeList.EmployeeDirectoryModel>()
        .Name("treelist")
        .Columns(columns =>
        {
            columns.Group(group => group
                .Title("Personal Info")
                .HeaderHtmlAttributes(new {@class="myClass"})
                .Columns(info =>
                {
                  //...
                })
            );
        })

Current behavior

Null reference exception is thrown.

Expected/desired behavior

The Html attributes should be added to the header.

Environment

  • Kendo UI version: 2021.2.616
  • Browser: [all]
0 comments