Hi, I am working on an ojTable with rows Expander as rows and pagingControl.
Here's the code:
self.templateDataSource = new oj.FlattenedTreeTableDataSource(new oj.FlattenedTreeDataSource(
new oj.JsonTreeDataSource(treeData)));
self.pagingDatasource(new oj.PagingTableDataSource(self.templateDataSource));
I passed this pagingDatasource to be data source for my ojTable and pagingControl. Notice that the row in ojTable could either be a normal table row or row expander.
The issue is that whenever I expand any row expander on the first page and try to go to the second page and expand a another, the expanding action will give me the following error:
ojflattenedtreetabledatasource.js:77 Uncaught TypeError: Cannot set property 'nodeSet' of undefined
at oj.FlattenedTreeDataSource._data.insertRows (http://localhost:8000/js/libs/oj/v3.1.0/debug/ojflattenedtreetabledatasource.js:77:44)
at oj.FlattenedTreeDataSource.handleExpandSuccess (http://localhost:8000/js/libs/oj/v3.1.0/debug/ojrowexpander.js:1778:18)
at oj.FlattenedTreeDataSource. (http://localhost:8000/js/libs/oj/v3.1.0/debug/ojrowexpander.js:1429:111)
at oj.JsonTreeDataSource.fetchChildren (http://localhost:8000/js/libs/oj/v3.1.0/debug/ojjsontreedatasource.js:332:30)
at oj.FlattenedTreeDataSource._expand (http://localhost:8000/js/libs/oj/v3.1.0/debug/ojrowexpander.js:1429:20)
at oj.FlattenedTreeDataSource.expand (http://localhost:8000/js/libs/oj/v3.1.0/debug/ojrowexpander.js:1389:10)
at oj.FlattenedTreeTableDataSource.expand (http://localhost:8000/js/libs/oj/v3.1.0/debug/ojflattenedtreetabledatasource.js:279:14)
at $.(anonymous function).(anonymous function)._fireExpandCollapse (http://localhost:8000/js/libs/oj/v3.1.0/debug/ojrowexpander.js:3058:29)
at $.(anonymous function).(anonymous function)._fireExpandCollapse (http://localhost:8000/js/libs/jquery/jqueryui-amd-1.12.0/widget.js:132:25)
at HTMLDivElement. (http://localhost:8000/js/libs/oj/v3.1.0/debug/ojrowexpander.js:2542:22)
Don't see a trace on the code I wrote so I wonder what's going on here with the paging. Thanks for any help in advance.