jQWidgets Forums

jQuery UI Widgets Forums Navigation Tree JSON Data without parentId relation

This topic contains 2 replies, has 2 voices, and was last updated by  arunkumar.rc 9 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • JSON Data without parentId relation #77917

    arunkumar.rc
    Participant

    Hi,

    Is it possible to use below JSON data in Tree or TreeGrid . There is no parent and child id relation(i.e there is no relation through ids). But the child element is listed as sub elements. I want to handle this way upto four layer of sub element in data. I will be getting this in my dataAdapter and give it as input to Tree (or TreeGrid if Tree is not possible). In the below JSON data i am mentioning ‘reports’ as sub element. Please let me know if there is any working example. Thanks !

    {
    “object”: [
    {
    “id”: “50”,
    “name”: “ABC”,
    “displayName”: “ABC name”,
    “roleName”: “ABC”,
    “reports”: [
    {
    “id”: “100”,
    “name”: “ABC_Text1”,
    “displayName”: “ABC_Text1 name”
    },
    {
    “id”: “101”,
    “name”: “ABC_Text2”,
    “displayName”: “ABC_Text2 name”
    }
    ]
    },
    {
    “id”: “51”,
    “name”: “DEF”,
    “displayName”: “DEF name”,
    “roleName”: “DEF”,
    “reports”: [
    {
    “id”: “200”,
    “name”: “DEF_Text1”,
    “displayName”: “DEF_Text1 name”
    },
    {
    “id”: “201”,
    “name”: “DEF_Text2”,
    “displayName”: “DEF_Text2 name”
    }
    ]
    }
    ],
    “srw_restricted”: []
    }

    JSON Data without parentId relation #77926

    ivailo
    Participant

    Hi arunkumar.rc,

    About jqxTreeGrid you can see Nested JSON demo.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    JSON Data without parentId relation #78403

    arunkumar.rc
    Participant

    @ivailo Ivanov: Thanks for your response. That helped !

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.