URGENT: ListView completely broken v2023.1.314

1 Answer 326 Views
ListView
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
DoomerDGR8 asked on 17 Mar 2023, 12:33 PM

Hi!

The ListView is breaking my web application, and I cannot make head or tail of the reason:

An unhandled exception occurred while processing the request.

NotSupportedException: "ClientTemplateId or ClientTemplateHandler" cannot be null or empty.

Kendo.Mvc.UI.ListView<T>.VerifySettings()

 

Also, you demos for the ListView are broken and the browser tab crashed after a while.

I need an urgent fix, as this is affecting the live application.

1 Answer, 1 is accepted

Sort by
1
Accepted
Aleksandar
Telerik team
answered on 17 Mar 2023, 01:43 PM

Hi DoomerDGR8,

The issue has already been reported and a colleague has been reviewing it:

https://feedback.telerik.com/aspnet-core-ui/1601809-listview-notsupportedexception-clienttemplateid-or-clienttemplatehandler-cannot-be-null-or-empty 

or

https://github.com/telerik/kendo-ui-core/issues/7264

I see a commit with a fix is already added and until it is released you can use the workaround suggested in the issue, linked above, namely setting a ClientTemplateHandler with a dummy value:

<div class="demo-section wide">
    @(Html.Kendo().ListView<Kendo.Mvc.Examples.Models.ProductViewModel>()
    .Name("listView")
    .TagName("div")
    .ClientTemplateId("template")
    .ClientTemplateHandler("myTemporaryTemplateHandler")
    .DataSource(dataSource => dataSource
        .Ajax()
        .Read(read => read.Action("Products_Read", "ListView"))
        .PageSize(21)
    )
    .Pageable()
    )
</div>

Here is a runnable REPL with the latest version and the suggested workaround.

Please accept our apologies for the inconvenience caused.

Regards,
Aleksandar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ListView
Asked by
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Aleksandar
Telerik team
Share this question
or