I would like to load hierarchical data and all examples that I have seen use a "lazy loading" approach. However, the amount of data that I'm loading isn't that big, so I'd like to load everything at once. Is it possible to load all of this data at once, with the detail data already being expanded? Do I need to use the detailInit function, or is there another way to achieve this?
In my specific example, I am loading events (top level) and each event has one of more items. (See the sample JSON below.)
Events:
[{
EventId: 1,
Items:
[{
Vendor: "Company X",
ItemName: "Chips"
},
{
Vendor: " Company X ",
ItemName: "Salsa"
}]
},
{
EventId: 2,
Items:
[
{
Vendor: " Company X ",
ItemName: "Chips"
},
{
Vendor: " Company X",
ItemName: "Salsa"
}]
}}