Hi Jack The Dreamer,
If you want to learn which is the highest index, you can do the following:
1. Use the jqxDataAdapter’s loadComplete callback. That is a callback which is called when the dataAdapter is loaded with data.
2. jqxDataAdapter has a field called “records” which contains the loaded data. As “records” is an Array, you can use the “length” property to get the number of loaded records.
3. In the loadComplete callback, you can do this:
$("#combobox").jqxComboBox({selectedIndex: dataAdapter.records.length-1});
Hope this helps.
Best Regards,
Peter Stoev
jQWidgets Team
http://www.jqwidgets.com