Our blazing fast Grid component built with pure JavaScript


Post by mitja »

Hi, I am trying to create dynamically adding children to parent by choosing an option from context menu but the grid doesn't show added children. I am using demo angular implementation from examples. Is any similar example to see what did I do wrong or anyone knows what is the problem.? Thanks

Post by mats »

Please provide a test case or full code showing how you tried to implement this.

Post by mitja »

Hi thanks, for so fast response I append two attachments.
Attachments
grid.component.txt
this is angular implementation for grid
(3.86 KiB) Downloaded 192 times
bom-tree.component.txt
This is an angular component the main method is onAddRow
(3.62 KiB) Downloaded 202 times

Post by mats »

Seems you're using 'add' which is a store method for *flat* stores. TreeStore works diffently, try this in our online example:

https://bryntum.com/examples/grid/tree
bryntum.query('treegrid').store.rootNode.appendChild({ name : 'new row' })

Post by mitja »

Thanks for the solution but I still don't work when I want to add to selected row new children from the context menu
  this.grid.selectedRecord.appendChild( new Model({name:"new"}}
selectedRecord is currently selected row it's adding it in store but grid don't show it.

Post by mats »

That looks like a bug, ticket opened:
https://app.assembla.com/spaces/bryntum ... es/details#

Post by mitja »

I think it's not public I cannot see it :) link don't work

Post by mats »

Sorry, now it is!

Post by mitja »

What the estimated time to resolve it?

Post by mats »

Hard to say, most likely it'll be part of next release 2-3w max.

Post Reply