Hello All,
Is it possible to set up categories (groups) in jqxDropDown List populating from JSON feed? I have seen the example using arrays and am not sure how to do the same for JSON data. I have tried this code:
var events = { datatype: "json", type: 'POST', datafields: [{name: 'events'}, {name: 'id'}, {group: 'gr'}], id: 'id', url: '/test.php', data: { mode: "events" }, async: false }; var eventAdapt = new $.jqx.dataAdapter(events, { autoBind: true }); $("#str_scen").jqxDropDownList({ checkboxes: false, source: eventAdapt, displayMember: "events", .........
but it doesn’t work. I could convert JSON to array and feed the dropdown list directly, but it would be nice to designate categories in JSON.
Pls advise.
Thanks