listview MVC.. ALL eamples dont work

1 Answer 57 Views
ListView
Wesley
Top achievements
Rank 1
Wesley asked on 22 Sep 2022, 01:17 AM

https://docs.telerik.com/aspnet-mvc/html-helpers/data-management/listview/binding/ajax-binding

 

@(Html.Kendo().ListView<ListViewCore.Models.OrderViewModel>() .Name("ListView") .TagName("div") .ClientTemplateId("template") .DataSource(dataSource => dataSource .Ajax() .PageSize(6) .Read(read => read.Action("Orders_Read", "ListView").Data("additionalData")) ) .Pageable() ) <script> function additionalData() { return { firstName: "John", lastName: "Doe" }; } </script>

 

the .Ajax() instantly doenst work. EVERY sample fails !!!

 

Anyone have a listview<T> that actually works? the demos and samples all fail.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 26 Sep 2022, 03:33 PM

Hello Wesley,

 

Thank you for contacting us.

This is pretty odd, indeed. Usually, you can find all the ListView demos in the following runnable location:

D:\Program Files (x86)\Progress\Telerik UI for ASP.NET MVC R3 2022\wrappers\aspnetmvc\Examples\MVC5

And if you have a server-binding with a direct Model, I am sending a sample for this scenario as well.

The code snippet you provided looks neat and should work properly. But the thing is that I cannot see the actual template and the controller action. Can you send me these snippets as well? I will then prepare a full working MVC app using your exact code and send it to you.

Regards,
Eyup
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
Wesley
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or