Kendo Script files needed for Listview

1 posts, 0 answers
  1. Grape
    Grape avatar
    1 posts
    Member since:
    Sep 2014

    Posted 15 Dec 2014 Link to this post

    Hi,

    I am using Listview in one of my asp.net mvc page. Data is getting loaded into listview by making an ajax call to the serevr. it is working fine when I have added kendo.all.min.js and kendo.aspnetmvc.min.js files on my page. kendo.all.min.js is 1.9 MB file and because of this my site is performing slow as browser sends a request to download this file first time.

    I referred this page and http://docs.telerik.com/kendo-ui/install/custom#listview and found that for listview you need only some files to work with listview.

    jquery.js
    kendo.core.js
    kendo.data.js
    kendo.calendar.js (Editing feature)
    kendo.popup.js (Editing feature)
    kendo.datepicker.js (Editing feature)
    kendo.userevents.js (Editing feature)
    kendo.numerictextbox.js (Editing feature)
    kendo.validator.js (Editing feature)
    kendo.binder.js (Editing feature)
    kendo.editable.js (Editing feature)
    kendo.userevents.js (Selection feature)
    kendo.selectable.js (Selection feature)
    kendo.listview.js

    I tired with above 14 files and kendo.aspnetmvc.min.js file;(i think this is for Ajax call) on my page.
    Script is not executing at all and it fails on client side itself. Error message on browser console says Uncaught TypeError: undefined is not a function and source file it suggest is kendo.listview.min.js.
     
    I want to add only required files and not one big file (kendo.all.min.js) to improve the performance.
    For your reference attached is my cshtml page; so that you can have a look at the code.

    Could someone help me on this?


    Thanks,
Back to Top