Hello all,
I am currently facing a problem adding a item to my dropdownlist.
Here is the code:
var source =
{
datatype: "xml",
datafields: [
{ name: 'Title', map: 'm\\:properties>d\\:Title', type: 'string' },
{ name: 'ID', map: 'm\\:properties>d\\:ID', type: 'string' }
],
url: url,
root: "entry",
record: "content"
};
var dataAdapter = new $.jqx.dataAdapter(source);
// Create a jqxDropDownList
$("#jqxDdlParent").jqxDropDownList(
{
source: dataAdapter,
width: '400',
displayMember: "Title",
valueMember: "ID"
});
$("#jqxDdlParent").jqxDropDownList('insertAt', { label: '-', value: 0 }, 0);
The dropdownlist is working well, except of showing the first entry that is added programmatically (‘-‘).
Can you help me on this?