Hello there, I am trying to utilize the dx-tree-view component. In my Home.html file, I have included the following HTML code:
<div dx-tree-view="treeViewOptions"></div>
And in my HomeController.js:
$scope.treeViewOptions = {
bindingOptions: {
dataSource: 'myPhoneItems'
},
keyExpr: 'id',
displayExpr: 'caption',
parentIdExpr: 'parentId',
virtualModeEnabled: true
}
My application features buttons for both Create New Category and Create New Phone. When creating a new phone, the form includes a select box with categories, where data is stored in an array of objects that resemble this structure: https://i.sstatic.net/QcM7y.png
Upon adding some phones to my page: https://i.sstatic.net/VS6km.png, when I add the line dataStructure: "plain" within $scope.treeViewOptions = {...}, nothing is displayed. Perhaps someone here knows how to rectify this? Thank you for your assistance!