hello
I’m trying, but this example does not work
I can not only use string
var source = [
"Affogato",
"Americano",
"Bicerin",
"Breve",
"Café Bombón",
"Café au lait",
"Caffé Corretto",
"Café Crema",
"Caffé Latte"];
I had to use ID
http://jsfiddle.net/jqwidgets/8MaPZ/
and I can use select ID? because may be same name 2 record
thank you
var vesselRelatedWorkPositions = [];
vesselRelatedWorkPositions.push({ ID: 1, Name: "ITEM1"});
vesselRelatedWorkPositions.push({ ID: 2, Name: "ITEM2"});
vesselRelatedWorkPositions.push({ ID: 3, Name: "ITEM3"});
vesselRelatedWorkPositions.push({ ID: 4, Name: "ITEM4"});
vesselRelatedWorkPositions.push({ ID: 5, Name: "ITEM5"});
// Create a jqxListBox
$("#jqxListBox").jqxListBox({
source: vesselRelatedWorkPositions,
theme: 'energyblue',
width: '200px',
height: '250px',
displayMember: "Name",
valueMember: "ID"
});
$("#jqxButton").jqxButton({
theme: 'energyblue'
});
$('#jqxButton').on('click', function () {
$("#jqxListBox").jqxListBox('selectItem','ITEM5');
});
-
This topic was modified 8 years ago by mustafa.
-
This topic was modified 8 years ago by mustafa.
-
This topic was modified 8 years ago by mustafa.