Completed
Last Updated: 03 Jun 2025 12:53 by Tyler
Release 2025 Q3 (Aug)
Kevin
Created on: 29 May 2025 08:15
Category: Grid
Type: Bug Report
1
Grid toolbar template throws an exception

Bug report

The Core Grid throws an exception when setting its toolbar template through the ClientTemplateId option. The issue is a regression introduced in version 2025.2.520.

Reproduction of the problem

  1. Configure the toolbar of the Grid like this:
.ToolBar(toolbar => {
     toolbar.ClientTemplateId("myTemplate");
})

Current behavior

An exception is thrown:

NullReferenceException: Object reference not set to an instance of an object

Expected/desired behavior

The configuration works without throwing exceptions.

Wokraround

Use the alternative way of setting the toolbar template, on the Grid's root level:

@(Html.Kendo().Grid <MyModel>()
      .Name("grid")
      .ToolBarClientTemplateId("myTemplate")

Environment

  • Kendo UI version: 2025.2.520
  • Browser: [all]
1 comment
Tyler
Posted on: 03 Jun 2025 12:53
Thanks for the workaround!