I have a JSON return from an endpoint that is hierarchical in a way but has different field names on each level for the ID and text. How would I make a kendo Drop Down Tree with this data without having to recreate the entire list? I will need to use the valueMapper, loadOnDemand, and get the value like this: .value(). It is like this (except with a lot more records):
[
{
stateId: 1,
stateName: "Florida",
cities: [
{
cityId: 1,
cityName: "Orlando",
stores: [
{
storeId: 101,
storeName: "I4"
},
{
storeId: 202,
storeName: "International Drive",
},
{
storeId: 240,
storeName: "UCF"
}
]
}
]
}
]