This is a migrated thread and some comments may be shown as answers.

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

11 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 04 Sep 2014, 10:03 AM

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

11 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 04 Sep 2014, 11:33 AM
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.

 
0
Matt
Top achievements
Rank 1
answered on 04 Sep 2014, 02:40 PM
Thanks, I'll keep an eye out for it.
0
Vaclav
Top achievements
Rank 1
answered on 08 Sep 2014, 11:42 AM
hi guys same problem here :( is there any downgrade wizard? with latest release are client detail grids unusable
0
Dimiter Madjarov
Telerik team
answered on 08 Sep 2014, 12:08 PM
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.

 
0
Matt
Top achievements
Rank 1
answered on 08 Sep 2014, 01:53 PM
I have just tried out 2014.2.905 and that works as expected.
Good work

Thanks,
Matt
0
Dimiter Madjarov
Telerik team
answered on 08 Sep 2014, 02:16 PM
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.

 
0
Julio
Top achievements
Rank 1
answered on 15 Sep 2014, 09:06 PM
Hi

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

Is the a patch somewhere?

Regards,
Julio
0
Matt
Top achievements
Rank 1
answered on 15 Sep 2014, 10:01 PM
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.
0
Dimiter Madjarov
Telerik team
answered on 16 Sep 2014, 07:03 AM
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.

 
0
Julio
Top achievements
Rank 1
answered on 16 Sep 2014, 07:56 PM
Hi,

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

And the error is fixed.

Thanks!

Regards,
Julio
0
Dimiter Madjarov
Telerik team
answered on 17 Sep 2014, 07:09 AM
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.

 
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Matt
Top achievements
Rank 1
Vaclav
Top achievements
Rank 1
Julio
Top achievements
Rank 1
Share this question
or