Вопрос

I am having a terrible time getting the ListView to do anything. I followed Telerik's instructions and added the reference and all needed scripts. I only ever get "[Object object] has no method kendoListView".

After messing around for an hour, I removed the mobile versions of the scripts and instead added the desktop versions. Now I get "Cannot read property 'aspnetmvc-ajax' of undefined".

I am using Asp.Net with MVC4 and Rayzor. JQuery is 1.9.1 and Telerik's components are Q1 2013. Does anyone have any ideas what these errors mean?

Это было полезно?

Решение

For kendo mobile listview to work, you must use the initialize method of kendoMobileListView, not kendoListView. However, you can make your work even easier; if you add a data-role="listview" to the element representing the listview, and put a single call of the following in your page:

var app = new kendo.mobile.Application(document.body);

This initializes all of the widgets for you, by looking for the data-role attribute. Check this out in the demos.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top