Skip to content

Detail Grid ToolBar ClientTemplate cannot have multiple rows #5638

@PreslavKozovski

Description

@PreslavKozovski

Bug report

ASP.NET Core Detail Grid ToolBar ClientTemplate cannot have multiple rows.

Reproduction of the problem

  1. Go to - https://demos.telerik.com/aspnet-core/grid/detailtemplate
  2. Add this line to the child grid -
    .ToolBar(tb => tb.ClientTemplate("#=nestedTemplateFunction(data)#"))
    
  3. Add this code
    <script id="nestedTemplateId" type="text/kendo-tmpl">
        <p>
        </p>
    </script>
    <script>
        function nestedTemplateFunction(el) {
            var template = kendo.template($("#nestedTemplateId").html());
            var result = template(el);
            return result.trim();
        }
    </script>
    

Current behavior

There is an error, and the Grid is not displayed.

Expected/desired behavior

The Grid is displayed.

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions