Open popup and clicked on listbox select value and clicked ok button

Posted by: bemes9226 on 4 March 2021, 7:03 am EST

    • Post Options:
    • Link

    Posted 4 March 2021, 7:03 am EST

    open popup clicked in listbox under selected one value hecked ok ,then again when openpopup i want see only single value which is create last but not show all list.

    if user already selected value only we can filter,we cant see other values in list box.

    https://stackblitz.com/edit/js-ugenj1?file=index.js

  • Posted 4 March 2021, 9:00 am EST

    first time show all listbox values then select one value in listbox then click ok.again open poup then i want to show only selected value in listbox .(like filter value)

  • Posted 5 March 2021, 4:05 am EST

    Hi,

    If I understand correctly, what you need is that after selecting an item from the ListBox and clicking ok button, the listbox should only display the selected item. To achieve this you may simply update the listBox’s source to have only one item. You may refer to the following code snippet and the updated sample:

    cnts.collectionView.sourceCollection = [cnts.selectedItem];
    

    https://stackblitz.com/edit/js-qd2hcp?file=index.js

    If you had a different requirement then please explain more about your retirement.

    Regards

Need extra support?

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

Learn More

Forum Channels