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
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.
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.
Good work
Thanks,
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.
I tried with "Kendo UI v2014.2.909" (kendo.all.js) but it didn't work.
Is the a patch somewhere?
Regards,
Julio
Though correct me if im wrong Dimiter Madjarov.
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.
I have downloaded the "telerik.ui.for.aspnetmvc.internal.2014.2.909.commercial" package.
And the error is fixed.
Thanks!
Regards,
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.