WJMultiSelect emit valueChanges only one time with Angular formControl

Posted by: cesar.smerling on 9 January 2020, 5:14 am EST

  • Posted 9 January 2020, 5:14 am EST

    Hi!

    I have a problem with the WjMutilSelect component when used with angular formControl with checkItems activated. When I check or unchekd an item, the valueChanges method of the control is emiting only once.

    I can update and call the setValue method on the control when chekedItemsChange is firing but I have a problem that this runs on initialization.

    This is a bug or there is way to manage this?

  • Posted 12 January 2020, 4:54 pm EST

    Hi Cesar,

    Sorry for the delayed response.

    If you wish to bind the checkedItems of MultiSelect, you may simply set an array as the initial value of the FormControl and in the initialized event of the MultiSelect, set the FormControl’s value to the checkedItems of the MultiSelect. Please refer to the sample attached at the end.

    Regards,

    Ashwin

    multiselect.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels