Grid's client detail is a "Invalid template", when it has filterable applied (2014.2.903)

12 posts, 1 answers
  1. Matt
    Matt avatar
    43 posts
    Member since:
    May 2013

    Posted 04 Sep 2014 Link to this post


    Ive opened a bug ticket (856347) for the below problem. Previous versions are fine (2014.2.801 was the last that I was using)

    Here it is again just in case any one else has found this happening when updating to SP1 (2014.2.903)...
    Javascript error: "Error: Invalid template:'<div class="k-widget k-grid" id="InnerGrid"> ..."

    The client detail templates's client template is invalid. Here is a simple demo:

    @(Html.Kendo()
        .Grid<TestFilterTemplate.Models.Model>()
        .Name("MainGrid")
        .Columns(cols => {
            cols.Bound(e => e.Id);
            cols.Bound(e => e.Name);
        })
        .ClientDetailTemplateId("testtemplate")
        .DataSource(data => {
            data.Ajax().Read(read => read.Action("ListA", "Value"));
        })
    )
     
    <script type="text/html" id="testtemplate">
    @(Html.Kendo()
        .Grid<TestFilterTemplate.Models.Model>()
        .Name("InnerGrid")
        .Filterable() //<--- remove me and i work.
        .Columns(cols => {
            cols.Bound(e => e.Id);
            cols.Bound(e => e.Name); 
        })
        .DataSource(data => {
            data.Ajax().Read(read => read.Action("ListA", "Value"));
        }).ToClientTemplate()
    )
    </script>

    Removing the .Filterable() line from the client template appears to resolve the problem, but not quite the fix that is needed.

    Thanks,
    Matt

  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2310 posts

    Posted 04 Sep 2014 Link to this post

    Hi Matt,


    Thanks for reporting the issue. We have addressed the problem and the fix will be available in the next internal build.

    I wish you a great day!

    Regards,
    Dimiter Madjarov
    Telerik
     

    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.

     
  3. Matt
    Matt avatar
    43 posts
    Member since:
    May 2013

    Posted 04 Sep 2014 in reply to Dimiter Madjarov Link to this post

    Thanks, I'll keep an eye out for it.
  4. Vaclav
    Vaclav avatar
    2 posts
    Member since:
    Dec 2013

    Posted 08 Sep 2014 Link to this post

    hi guys same problem here :( is there any downgrade wizard? with latest release are client detail grids unusable
  5. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2310 posts

    Posted 08 Sep 2014 Link to this post

    Hello Vaclav,


    The internal build, which contains the fix is already live, so we suggest to download it from your profile and upgrade the currently used version.

    Regards,
    Dimiter Madjarov
    Telerik
     

    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.

     
  6. Matt
    Matt avatar
    43 posts
    Member since:
    May 2013

    Posted 08 Sep 2014 in reply to Dimiter Madjarov Link to this post

    I have just tried out 2014.2.905 and that works as expected.
    Good work

    Thanks,
    Matt
  7. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2310 posts

    Posted 08 Sep 2014 Link to this post

    Hi Matt,


    Thanks for confirming this.

    Have an awesome week, guys!

    Regards,
    Dimiter Madjarov
    Telerik
     

    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.

     
  8. Julio
    Julio avatar
    3 posts
    Member since:
    Aug 2014

    Posted 15 Sep 2014 in reply to Dimiter Madjarov Link to this post

    Hi

    I tried with "Kendo UI v2014.2.909" (kendo.all.js) but it didn't work.

    Is the a patch somewhere?

    Regards,
    Julio
  9. Matt
    Matt avatar
    43 posts
    Member since:
    May 2013

    Posted 15 Sep 2014 in reply to Julio Link to this post

    I didnt look at the differences, but I presumed (that is probably a bad word in development) that it was more the output of the mvc dll rather than than the kendo javascript templating engine (or anything in the js file). Have you upgraded that as well ?

    Though correct me if im wrong Dimiter Madjarov.
  10. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2310 posts

    Posted 16 Sep 2014 Link to this post

    Hi guys,


    Yes, the fix is applied in the first internal build right after the release. Indeed the issue was related to the MVC wrappers, not the templating itself.

    Julio, please make sure that the Kendo UI version was upgraded successfully.

    Regards,
    Dimiter Madjarov
    Telerik
     

    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.

     
  11. Julio
    Julio avatar
    3 posts
    Member since:
    Aug 2014

    Posted 16 Sep 2014 in reply to Dimiter Madjarov Link to this post

    Hi,

    I have downloaded the "telerik.ui.for.aspnetmvc.internal.2014.2.909.commercial" package.

    And the error is fixed.

    Thanks!

    Regards,
    Julio
  12. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2310 posts

    Posted 17 Sep 2014 Link to this post

    Hi Julio,


    Thanks for the update. I am glad the issue is resolved.

    Regards,
    Dimiter Madjarov
    Telerik
     

    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