Upgrade to 2014.2.903 is making invalid template error for hierarchical grid

2 posts, 0 answers
  1. Wim
    Wim avatar
    2 posts
    Member since:
    Jan 2013

    Posted 15 Sep 2014 Link to this post

    after upgrading to latest version of kendo asp.net mvc 2014.2.903, it is making javascript error "Invalid Template".
    It is observed that error occurs if hierarchical grid is filterable, for testing here is the sample code take from the example, i have changed this code to make sub grid as Filterable

            .Columns(columns =>
                columns.Bound(e => e.FirstName).Width(110);
                columns.Bound(e => e.LastName).Width(110);
                columns.Bound(e => e.Country).Width(110);
                columns.Bound(e => e.City).Width(110);
                columns.Bound(e => e.Title);
            .HtmlAttributes(new { style = "height:430px;" })
            .DataSource(dataSource => dataSource
                .Read(read => read.Action("HierarchyBinding_Employees", "Grid"))            
            .Events(events => events.DataBound("dataBound"))

    <script id="template" type="text/kendo-tmpl">
                .Columns(columns =>
                    columns.Bound(o => o.OrderID).Width(70);
                    columns.Bound(o => o.ShipCountry).Width(110);
                    columns.Bound(o => o.ShipAddress);
                    columns.Bound(o => o.ShipName).Width(200);
                .DataSource(dataSource => dataSource
                    .Read(read => read.Action("HierarchyBinding_Orders", "Grid", new { employeeID = "#=EmployeeID#" }))
        function dataBound() {
  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2310 posts

    Posted 16 Sep 2014 Link to this post

    Hi Wim,

    Please excuse us for this inconvenience. The issue is reproducible when a filterable Grid is placed inside a client template and we found it shortly after the release. It is already fixed in the latest internal build, that you could download from your profile.

    Dimiter Madjarov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top