PureJS binding to Json Hierachy

Posted by: erik.berg on 30 January 2023, 6:34 pm EST

    • Post Options:
    • Link

    Posted 30 January 2023, 6:34 pm EST

    In the ‘heterogeneous’ hierarchies example on the TreeGrid demo, https://www.grapecity.com/wijmo/demos/Grid/TreeGrid/ChildItems/purejs, if I want to add new fourth column named “Earnings” that would display the value of the earnings.name JSON field…

    1. What is the syntax needed for the column.binding value?
    2. Are there any other wijmo setting that need to changed for the value to appear in the grid (childItemsPath?).
  • Posted 31 January 2023, 10:41 pm EST

    Hi,

    For this. we need to add an extra column with a different header and bind the column with the name property.

    But in this case, we need to handle the formatItem to remove the names from the First column and the extra column.

    Please refer to the demo sample for reference:

    https://jscodemine.grapecity.com/share/B2aX5PvgCEGa4SyvTVcRVQ/

    Regards,

    Manish Gupta

  • Posted 1 February 2023, 2:54 pm EST

    Thank you that is the information that I needed.

Need extra support?

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

Learn More

Forum Channels