Posted 14 September 2017, 11:46 am EST
I am trying to use a multi-select component and I am not able to find an example which shows all aspects of the component. I used the obvious properties of the component, but there are some properties which I am not able to understand. I also need to limit the user from selecting more than 3 items from the multi-select, So I used the checkedItemsChanged to control the selection, but unfortunately I do not get anything in the EventArgs. Can anyone help me figuring out whats going wrong or point me to an example for multi-select?
here is a sample code.
<wj-multi-select [isRequired]="false" [itemsSource]="departmentDropItems" [checkedItems]="departmentSelectionModel" [selectedValuePath]="'id'" [displayMemberPath]="'text'" [headerFormat]="'{count:n0} Departments Selected'" style="width:100%" (checkedItemsChanged)="onDepartmentsUpdateWijmo($event)"></wj-multi-select>
here is the function where I want to limit the number of selections.
onDepartmentsUpdateWijmo(ev: wijmo.EventArgs) { debugger ; //this.departmentSelOut = ev; }
I am not sure whether I am doing this right, really appreciate anyhelp.