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

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

  • Posted 23 March 2020, 6:18 pm 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'">
    </wj-list-box>


    Refer screen shot:



    Thanks,
    Ramu
  • Marked as Answer

    Replied 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
  • Replied 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