Error paging after DataSource Update

2 posts, 0 answers
  1. mvbaffa
    mvbaffa avatar
    102 posts
    Member since:
    Dec 2006

    Posted 30 Jul 2012 Link to this post

    Hi,

    I am receiving an error in the grid navigator after I update the datasource and refresh a grid.

    To update the dataSource in a Grid I do this:
    MyGrid.dataSource.data(myDataSource);
    MyGrid.refresh();

     When I first create my grid everything works fine, but after the update above, when I click on a page number I receive the following error:
    DOM Exception: NOT_FOUND_ERR (8)

    The error occurs inside kendo.ui.all.min.js in the statement c.table[0].replaceChild(i,c.tbody[0]).

    Can you help me ???
  2. Jendusak
    Jendusak avatar
    1 posts
    Member since:
    Sep 2012

    Posted 11 Sep 2012 Link to this post

    Hi,

    I had the same problem. I was debuging kendo.web.js and realized that this error occured when collection of rows in "tbody[0]"  is not the same as rows in tbody section of  "table[0]"  table. For me works this fix:

    table[0].replaceChild(tbody, that.table[0].children[1]);

    Instead of tbody[0] the real tbody of the table is seted as replaceChild parameter.

    I hope this help you
  3. Kendo UI is VS 2017 Ready
Back to Top