How to uncheck the checked items in wj-list-box?

Posted by: ramu on 23 March 2020, 6:18 pm EST

    • Post Options:
    • Link

    Posted 23 March 2020, 6:18 pm EST - Updated 3 October 2022, 7:56 am EST

    Hi,

    I have used below version in Angular 8 application

    Wijmo: 5.20191.612

    I need unchecked the checked items in listbox, while clicking “Clear” button.

    In HTML:

    <wj-list-box #lstAreas style=“height:230px; width:180px;”

    [itemsSource]=“areasData”

    [displayMemberPath]=“‘MessageAreaName’”

    [checkedMemberPath]=“‘selected’”>

    Refer screen shot:

    Thanks,

    Ramu

  • Posted 24 March 2020, 3:09 pm EST

    Hi Ramu,

    You can simply set the checkedItems array of ListBox to an empty array:

    https://stackblitz.com/edit/ckkyne-zlrdhg

    Regards,

    Ashwin

  • Posted 24 March 2020, 3:24 pm EST

    Thanks Ashwin.

    It works for me.

Need extra support?

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

Learn More

Forum Channels