I'm trying to achieve a type-ahead kind of functionality which when a user starts to type in a city code in a text item, it suggests the city as a drop-down list grid with two columns city code, city name and user should be able to populate the text selecting from the list grid too. User should be able to select multiple cities possibly using checkboxes. Also the list of cities is so huge that user has to do quite a bit of scrolling to select items which should be avoided.
My approach so far.
Implement ComboBoxItem or SelectItem which has already dataSource support and remove the pickerIcon and some styling to make it look like text Field.
If you want to be able to type inside the textItem you need to choose ComboBoxItem (SelectItem doesn't allow this) but ComboboxItem doesn't allow selection of multiple options. I tried to set the ListGrid property which is used to as datasource for ComboboxItem, but it ignores the checkboxes.
Another shortcoming inspite of using SelectItem I observed. When the list is huge users would prefer to select multiple entries by using the filter in the dropdown list grid. But when you select an entry, then try to filter and select another entry, the one previously selected is lost. So this defeats the whole purpose of having multiple selection option when the list is quite huge. The only way user can select multiple options is by navigating the entire list till he finds what he wants to select.
People validate if my understanding is correct. Also if any of you had any workarounds to achieve what i wanted, could be of help to me.
Thanks.
My approach so far.
Implement ComboBoxItem or SelectItem which has already dataSource support and remove the pickerIcon and some styling to make it look like text Field.
If you want to be able to type inside the textItem you need to choose ComboBoxItem (SelectItem doesn't allow this) but ComboboxItem doesn't allow selection of multiple options. I tried to set the ListGrid property which is used to as datasource for ComboboxItem, but it ignores the checkboxes.
Another shortcoming inspite of using SelectItem I observed. When the list is huge users would prefer to select multiple entries by using the filter in the dropdown list grid. But when you select an entry, then try to filter and select another entry, the one previously selected is lost. So this defeats the whole purpose of having multiple selection option when the list is quite huge. The only way user can select multiple options is by navigating the entire list till he finds what he wants to select.
People validate if my understanding is correct. Also if any of you had any workarounds to achieve what i wanted, could be of help to me.
Thanks.
Comment