I can add items to a comboBox - thru your excellent Telerik example.
But I am trying to delete all items , this code deletes some , not all
But I am trying to delete all items , this code deletes some , not all
function RemoveAllItems()
{
var combo = $find('cboGarmentSize');
var comboItems = combo.get_items();
for (var i = 0; i < comboItems.get_count(); i++)
{
combo.trackChanges();
var item = comboItems.getItem(i);
combo.get_items().remove(item);
combo.commitChanges();
}
}