Hello, I tried to use the Kendo TreeList component to render the treeview. The problem is how we can handle subItemsField if the data structure is complicated.
So, for example:
// my data
const blocks = [
{
name: 'block1',
cost: 90,
failures: [
{
......
effects: [{}, ....],
causes: [{
.....,
actions: [],
controls: [],
}, .....],
},
{
.....
effects: [{}, ....],
causes: [{
.....,
actions: [],
controls: [],
}, .....],
}
]
}
]
// kendo data
const a = [
{
subITem: [{
.....
subITem: [{}, {}, ...]
}]
}
]
If the data structure is like kendo data, then, it is easy to use subItemsField property to render treeview via treelist component.
But if it's not, then, how we can handle it? Let me get the answer asap.
I appreciate your help.
Regards
So, for example:
// my data
const blocks = [
{
name: 'block1',
cost: 90,
failures: [
{
......
effects: [{}, ....],
causes: [{
.....,
actions: [],
controls: [],
}, .....],
},
{
.....
effects: [{}, ....],
causes: [{
.....,
actions: [],
controls: [],
}, .....],
}
]
}
]
// kendo data
const a = [
{
subITem: [{
.....
subITem: [{}, {}, ...]
}]
}
]
If the data structure is like kendo data, then, it is easy to use subItemsField property to render treeview via treelist component.
But if it's not, then, how we can handle it? Let me get the answer asap.
I appreciate your help.
Regards