This is a migrated thread and some comments may be shown as answers.

Error paging after DataSource Update

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mvbaffa
Top achievements
Rank 1
mvbaffa asked on 30 Jul 2012, 03:03 PM
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 ???

1 Answer, 1 is accepted

Sort by
0
Jendusak
Top achievements
Rank 1
answered on 11 Sep 2012, 07:17 AM
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
Tags
Grid
Asked by
mvbaffa
Top achievements
Rank 1
Answers by
Jendusak
Top achievements
Rank 1
Share this question
or