Hi Jon,
Thanks for your update.
In order to deselect all the selected items in dropdownlist, you can make use of selectedItemIndex property. Set value -1 to selectedItemIndex property using setModel method.
function clearAll(args) { target.setModel({ selectedItemIndex: -1 }); } |
Another way of unselecting all items is by using clearText method.
function clearAll(args) { target.clearText(); } |
Please let us know if you need more clarifications.
Regards,
Prince