I have a grouped DevExtreme dxList. My input data array coming from the server looks like this:
inputArray = [{
label: "group1",
elements: [{ text: "a" }, { text: "b" }]
},
{
label: "group2",
elements: [{ text: "a" }, { text: "b" }]
}];
So I have "elements" instead of "items" and this won't work:
<div data-bind="dxList: { dataSource: inputArray, grouped: true }"></div>
Is there a configuration way to tell the dxList to use "elements" instead of "items"?