Show the destroyed data - e.fetch is not a function

2 posts, 0 answers
  1. Chris
    Chris avatar
    119 posts
    Member since:
    Oct 2015

    Posted 11 Apr 2017 Link to this post


    How could I show the destroyed data in another Grid ?

    I have met an error : 


    Uncaught TypeError: e.fetch is not a function at init.setDataSource (kendo.all.min.js:48)

    Best regards



  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 13 Apr 2017 Link to this post

    Hello Chris,

    The setDataSource method of the Grid accepts a DataSource instance as an argument. The _destroyed collection is an array, so you should not pass it directly. If what you are trying to do is display deleted items while doing Batch editing in the Grid, my advice is to go with the following cleaner approach.

    1) Handle the Grid remove event.
          .Events(e => e

    2) In the remove event, get the currently deleted item and add it to the second Grid:
    function grid_remove(e){
      var item = e.model,
        grid2= $("#grid2").data("kendoGrid");

    I am using toJSON method of the model to get only the clear data, without the Model properties.

    Here is a sample client-side implementation for your reference:

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top