Nov 20, 2013, 7:41 AM
Clear selection in dropdownfield
How to clear the selection in a drop down field on the client? Like in the mobile device the little "x" beside the drop down to clear it.
I have two drop down fields, one with checkboxes (multi select) and one without (single select), I found this post (http://forums.ext.net/showthread.php...rop-down-field) with the following code:
I have two drop down fields, one with checkboxes (multi select) and one without (single select), I found this post (http://forums.ext.net/showthread.php...rop-down-field) with the following code:
<Click Handler="#{DropDownField}.component.cascade(function(item){if(item.isXType('checkbox')){item.setValue(false);}})" />
But it didn't work, then I tried to use this example (https://examples2.ext.net/#/Form/Dro...alueText_Mode/) with the following code:<Click Handler="#{DropDownField}.component.getSelectionModel().deselectAll();" />
But it didn't work too.