I want to insert the child row in the tree grid
https://prnt.sc/a-75ZkkcpepJ
grid.store.insert(0, newData)[0];
using above code
But this code work only for the parent row
How can I implement this function?
I want to insert the child row in the tree grid
https://prnt.sc/a-75ZkkcpepJ
grid.store.insert(0, newData)[0];
using above code
But this code work only for the parent row
How can I implement this function?
Hi,
You just need to set the parentId of the record to another parent's id.
You can test it here https://bryntum.com/examples/grid/basic/
like this
https://prnt.sc/a8XFbVMHZP0Y
Or can u add an "add function" on cellMenu?
Yes, easy to add menu items. Please see docs: https://bryntum.com/docs/grid/guide/Grid/customization/contextmenu
Does that help?
Yeah, sure
But there is no exist add function.
I need "add function" on cellMenu.
Now, how can I add a new child row on tree grid?
https://www.loom.com/share/0525410ac82e4f0da9a37f31c09ff215
Hey web combatant,
Perhaps you're looking for the insertChild function?? https://www.bryntum.com/docs/grid/api/Core/data/mixin/TreeNode#function-insertChild
Best regards,
Márcio