jQWidgets Forums

jQuery UI Widgets Forums TreeGrid Nested JSON with different child structure

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Nested JSON with different child structure #67330

    san1646
    Participant

    Hi,

    I am working on a TreeGrid with nested structure. From the documentation for Data Binding to Nested JSON, I have included the code.
    But my JSON has nested children, but with different structure.

    `{
    “ageOfEquip”:5,
    “config2”:20,
    “config3”:1,
    “config4”:null,
    “conifg1”:250,
    “cssServiceId”:7,

    “cssTravel”:{
    “contingency”:2,
    “costFactor”:50,
    “cssTravelId”:1,
    “destination”:”San Antonio”,
    “driveMiles”:50,
    “esc”:0.73,
    “expAirfare”:800,
    “expAirfareByMileage”:1,
    “expBaggageFee”:75,
    “expCarRental”:80,
    “expGasRental”:50,
    “expHotel1”:100,
    “expMileage”:50,
    “expMisc”:0,
    “expParking”:25,
    “expPerDiem”:60,
    “factor”:null,
    “hoursPerDay”:8,
    “margin”:25,
    “miscQty”:null,
    “noDaysPerTrip”:1,
    “noTechs”:1,
    “noTrips”:2,
    “parkingQty”:2,
    “prdCogsRate”:63,
    “prepTime”:8,
    “rate”:null,
    “reportTime”:8,
    “source”:”Mason”,
    “totalMiles”:800,
    “travelTimeSite”:8,
    “warranty”:0.4
    },
    “esc”:null,
    “hoursPerDay”:10,
    “margin”:25,
    “noDaysPerTrip”:1,
    “noOfAssets”:1,
    “noTechs”:1,
    “noTrips”:1,
    “prepTime”:16,
    “project”:{ },
    “reportTime”:4,
    “serviceDesc”:”Audits”,
    “serviceName”:”Shoe sorter”,
    “serviceNote”:”7″,
    “warranty”:0.4
    }`

    I am able to render the parent tree, but not the child. Is it not possible in TreeGrid to render a different child?
    If not, can I do it in a different widget?

    Thanks

    Nested JSON with different child structure #67336

    Peter Stoev
    Keymaster

    Hi san1646,

    It’s not possible to mix data sources within the same widget.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.