Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
411
Adding a new band to grid through javascript
posted

I have a HierarchicalDataGrid that I have added a context menu to.

I want the user to be able to right click on the row and add a new child band to the row they have selected.

I can't add this like:

selectedItem.get_rowIslands().add(row);

This seems to work:

selectedItem.get_grid().get_rows().add(row);

But, when I do this it creates a child row under the parent row as well as what looks like a sibling row on the same level.

What is going on here?

  • 411
    posted

    I think that this error was related to the fact that the parent row wasn't a self reference and all below child bands were self reference. I took our the parent band and not having a problem from what I can see...