Author Topic: How can the following data be parsed to the table?  (Read 2802 times)

yousuftahir00

  • Newbie
  • *
  • Posts: 2
    • View Profile
How can the following data be parsed to the table?
« on: December 14, 2018, 08:59:22 pm »
I have the data in the following form:

Code: [Select]

var data = [
   {
      name: 'JOHN',
      children: [{name: 'A'},{name:'B'},{name:'C'}]
   },
   {
      name: 'PETER',
      children: [{name: 'D'},{name:'E'},{name:'F'}]
   }
]
What is the best way to show this data in ParamQuery Grid? Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How can the following data be parsed to the table?
« Reply #1 on: December 14, 2018, 09:39:31 pm »
That can be displayed in nested grid or a tree grid.

https://paramquery.com/demos/nesting_local

yousuftahir00

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: How can the following data be parsed to the table?
« Reply #2 on: December 17, 2018, 01:16:25 pm »
Thank you. It works great. Just a quick question regarding it. How can I add some text to the collapsible section where it shows the arrow icon. I want to add some text along with that icon. Kindly see the attachment for an example. Thanks.
 

saritha

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: How can the following data be parsed to the table?
« Reply #3 on: February 14, 2019, 02:37:26 am »
Hi,  how you get that data from database. I am struggling to get