Multi check boxes with two listboxes

Posted by: bemes9226 on 12 January 2021, 2:30 pm EST

  • Posted 12 January 2021, 2:30 pm EST - Updated 3 October 2022, 5:46 am EST

    1.actually i have added 2 list boxes with add and remove column buttons, if user select multi checkbox values only one values updated in second listbox.i want get all the selected values add in the 2nd listbox.

    please refer below:

  • Posted 13 January 2021, 7:28 pm EST

    Hello bemes9226,

    You must be using collectionView.currentItem or listbox.selectedItem for copying the item from 1st to 2nd listbox. This property only contain the current selected item (the highlighted one). If you need to move all the items, then use the checkedItems property of ListBox.

    https://www.grapecity.com/wijmo/api/classes/wijmo_input.listbox.html#checkeditems

    Regards,

    Ashwin

  • Posted 18 January 2021, 3:49 am EST

    in listbox how we can get select all checked,give reference

    <wj-list-box #listBox

    [checkedMemberPath]=“‘selected’” [itemsSource]=“columnsAvailable”

    (itemChecked)=“setLeader(listBox, $event)”

      style="height:200px;width:150px;">
      </wj-list-box>
    
  • Posted 19 January 2021, 12:25 am EST

    Hi,

    To display a select all checkbox, you will need to use MultiSelectListBox instead of ListBox. Please refer to the demo link below for reference:

    https://www.grapecity.com/wijmo/demos/Input/MultiSelectListBox/Overview/angular

    Most of the properties and events are the same but instead of itemChecked event, you will need to use the checkedItemsChanged event.

    ~regards

  • Posted 21 January 2021, 7:41 pm EST

    thanks

  • Posted 21 January 2021, 7:46 pm EST - Updated 3 October 2022, 5:46 am EST

    i have one more query actually am using multiselect listbox only, i need to customize replace the name select all instead of this need to use locations.

    check box with select all replace by

    check box with location.

  • Posted 24 January 2021, 5:04 pm EST

    You can use the wijmo.culture object to update the text displayed.

    wijmo.culture.MultiSelectListBox.selectAll = 'Locations';
    

    ~regards

Need extra support?

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

Learn More

Forum Channels