Hi,
I have created dropdown inside jqxwindow. I initialized the jqxdropdown to select value with certain value from database. There was no problem with ‘getItem’ method or any method that use index, but i got problem with ‘getItemByValue’ method. Below is my code:
var businessUnitList = { datatype: 'json', datafields: [ { name: 'id'}, { name: 'name'} ], url: 'remote.cfc?method=getBusinessUnit' };var dABusinessUnit = new $.jqx.dataAdapter(businessUnitList, { async: false, autoBind: true });$("#businessUnitDDlist").jqxDropDownList({ source: dABusinessUnit, promptText: "Pilih Suku Usaha: ", displayMember:'name', valueMember: 'name', width: '350px', height: '25px' });var itmx = $("#businessUnitDDlist").jqxDropDownList('getItemByValue','Wartakota');$("#businessUnitDDlist").jqxDropDownList('selectItem',itmx);
thanks for any help.