Posted 31 July 2019, 1:05 am EST
Is it possible to use Wijmo with knockout and load child-elements for the TreeFlexGrid lazily?
I tried to define this:
<div id="myGridgridgrid"
class="custom-flex-grid"
data-bind="wjFlexGrid: {
itemsSource: treeData,
selectionMode: 'ListBox',
headersVisibility: 'Column',
lazyLoadFunction: function (node, callback) {
console.log('This never gets run.')
},
childItemsPath: 'items',
}"
>
Then I use sample data:
var myViewModel = {
treeData: [ // start with three lazy-loaded nodes
{ name: 'Lazy Node 1', items: [] },
{ name: 'Lazy Node 2', items: [] },
{ name: 'Lazy Node 3', items: [] }
]
};
ko.applyBindings(myViewModel);
Now Wijmo does not allow to expand the items, they are only useless leaves now. No button to expand them.
Is this lazy loading not possible using wijmo.grid with knockout?