Declined
Last Updated: 25 Sep 2026 13:07 by ADMIN
Brandon
Created on: 09 Jun 2022 17:01
Category: Grid
Type: Bug Report
0
Grid Toolbar is not persistent with state

Hi Team,

Bug Report

The Kendo UI Grid's toolbar with a template is not persisted when the Grid is loaded using setOptions. 

Reproduction of the problem

With a toolbar containing a template with server tags, the toolbar content will disappear.

Expected Behavior

The Grid should retain the toolbar with the HTML contained when using setOptions.

Environment

Kendo UI version: 2022.2.510
jQuery version:
all
Browser: all

Thanks!

1 comment
ADMIN
Rumen
Posted on: 25 Sep 2026 13:07
Hello Brandon,

This behavior is expected when using server-side templates with the Grid MVC wrapper. Server templates are rendered on the server and are not included in the client-side configuration returned by getOptions().

When setOptions() is called, the Grid is destroyed and recreated, so the server-side toolbar template cannot be restored. The same limitation applies when the retrieved options are serialized with JSON.stringify(), since function references are not preserved.

To persist the toolbar content, use a client-side JavaScript template or add the equivalent toolbar configuration back to the options object before calling setOptions().

We are closing this item as by design.

 

Regards,
Rumen
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.