jQWidgets Forums

jQuery UI Widgets Forums Navigation Tree Tree with json data where a child has multiple parent

This topic contains 2 replies, has 3 voices, and was last updated by  sekharv 8 years, 9 months ago.

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

  • bugaam
    Member

    I have json structure with id, parentId and Desc. Everything works fine when each child has only one parent. But if a child has multiple parent then the first one is visible and the second one is not displayed. Any help to fix this is appriaciated. Thanks

    id 10073 has 2 parents

    Here is the json:
    [
    {
    “id”:10070,
    “desc”:”node 10070″,
    “parentId”:10072
    },
    {
    “id”:10073,
    “desc”:”node 10073″,
    “parentId”:10071
    },
    {
    “id”:10073,
    “desc”:”node 10073″,
    “parentId”:10070
    },
    {
    “id”:10072,
    “desc”:”node 10072″,
    “parentId”:10071
    },
    {
    “id”:10071,
    “desc”:”node 10071″,
    “parentId”:-1
    }
    ]


    Peter Stoev
    Keymaster

    Hi bugaam,

    jqxTree does not have built-in functionality to render an item that have 2 parents. I am afraid that this scenario is not supported by our widget.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    sekharv
    Participant

    Dear Peter Stoev,

    I’m also facing the same problem. It is very urgent in my project. If there is no built-in functionality, is it possible to customise the existing tree to get the desired result? Otherwise is there any other tree in jquery which support single child having more than one parent. Please suggest me. Its very urgent. If you want i will provide my code also. Please do needful

    thanks in advance

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

You must be logged in to reply to this topic.