Hi guys,
Need help. I have data adapter that gets list of years from json file. I try do bind drop down list with this dataadapter but my list is empty (Please Chose: and when open it is empty)
Here is example from console firebug of years.json file
[
2010,
2012,
2014
]
and my code…
var myURL ='years.json';
var source =
{
url: myURL,
datatype: 'json',
cache: false,
async: true,
};
var dataAdapter = new $.jqx.dataAdapter(source);
$("#ddlyear").jqxDropDownList({ source: dataAdapter, selectedIndex: 0, theme:theme });
Any suggestion.
Thanks!!!