Hi Arun,
thanks. The update made my day.
Regards,
Carsten
Hi Arun,
unfortunately it doesn't work. Indeed I can add items, but they not stored as expected. I can't get the value back out of the selected items:
http://jsplayground.syncfusion.com/iy5bkvzw
In the property text and value are the same values.
Kind regards,
Carsten
$("#selectgroup").ejListBox({
dataSource:[], // Bind an empty datasource
fields: {
text: "Name" ,value:"Value" }
}
);
locations.forEach(function(location){
$("#selectgroup").ejListBox("addItem", {
Name: location.Name, Value: location.Id });
});
|