There is no collectionView.currentItem when click a "child" row of a Hierarchy

Posted by: Chris.Zias on 29 March 2019, 5:03 pm EST

    • Post Options:
    • Link

    Posted 29 March 2019, 5:03 pm EST

    There is no collectionView.currentItem when I click a “child” row of a Hierachy FlexGrid.

    I need to get the underlying data from a child row, then file it’s parent row so I can edit the parent row.

    I have not problem doing this on a regular “parent” row.

    Could use some help here.

    Thanks!

  • Posted 1 April 2019, 9:10 am EST

    Hello,

    The collection view’s current item is null since the collectionView property only has the reference to the topmost parent of the source. In order to get the parent collection, you would need to manually iterate over the grid. Please refer to the sample provided:

    https://jsfiddle.net/eyk8jz1p/

  • Posted 1 April 2019, 3:15 pm EST

    I think this gives me something to go on. Thanks!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels