Hi Peter,
Thank you for your previous answer. That works on localdata option.
However, I’m setting the source via url.. Which looks exactly like this:
var source = { datatype: "json", root: "d", id: "id", datafields: [ { name: 'id'}, { name: 'd.mame' } ], url : 'Helper.svc/GetAutomationList', async: false }; var d = new $.jqx.dataAdapter(source); $("#jqxWidget1").jqxDropDownList({ source: d});
However the no data was returned. I’ve removed the
root
option and then gave me wrong JSON.
(via Google Chrome Console)
Object[d: "[{"id":1,"mame":"test1"},{"id":2,"mame":"test2"},{"id":3,"mame":"test3"},{"id":62,"mame":"test62"}]"__proto__: Object]