moayadnajd / nativescript-filter-select

A NativeScript plugin to provide an listview widget to select AND filter items
http://codeobia.com
Other
37 stars 19 forks source link

Updating/overwrite Selections #36

Closed tylerablake closed 6 years ago

tylerablake commented 6 years ago

Hi,

Firstly, thank you for all the work you have put into it and your other plugins by the way!

I am using the filter select and after selecting an item I try to select a different item, the box lights up like I'm clicking on an item from the listview but it doesn't overwrite my previous selection, is there something I am missing perhaps? My (change) function is only firing on the initial set but does not get fired again until you clear your selection and select a new value. Here is my code:

<FilterSelect id="reuseResponsiblePartyFilterSelect" row="0" col="0" horizontalAlignment="left" verticalAlignment="center" [items]="this.responsiblePartyListTokens" . (change)="onResponsiblePartySelected($event)" render="drop" multiple="false" hint="Select a Responsible Party " modal_title="Responsible Party" searchHint="Select a Party" closeText="Back" clearText="Clear" item_template="{{item_template}}" search_param="text" primary_key="id"> </FilterSelect>

Thank you for your help!

tylerablake commented 6 years ago

I was missing the id property on my dataset I was using in the filter select, I added that and it resolved my issue.

Thanks!