(Angular) WjMultiSelect - set default checked items

Posted by: rustysharpcloud on 14 September 2017, 11:55 am EST

    • Post Options:
    • Link

    Posted 14 September 2017, 11:55 am EST

    Hello,

    Is there a way to set items as ‘checked’ when the WjMultiSelect control first loads. It is easy enough to bind to the checkedItemsChanged event to see which items are being checked but when the control first loads I want to be able to set some items in the dropdown list to be checked by default?

    Any help would be much appreciated.

    Using Angular 1.5 w/ Wijmo v5.20162.207.

  • Posted 14 September 2017, 11:55 am EST

    Hi,

    You can set checkedItems list in initialized event that triggers on control’s initialization.

    You can also set checked-member-path property to item’s property containing boolean value.

    For your reference, please see the attached sample that implements the same.

    Thanks ,

    Manish Kumar Gupta

    2017/02/wjMultiSelect.zip

  • Posted 14 September 2017, 11:55 am EST

    Got it working!

    Thank you very much!

  • Posted 14 September 2017, 11:55 am EST

    I posted another issue on Friday just gone ‘flexpie-get-selectedindex-in-selectionchange-event’, but it seems whenever you try to navigate to the post it redirects to the account page. It appears the URL returns a 301 permanent redirect.

    Link to the post

  • Posted 14 September 2017, 11:55 am EST

    Hi,

    This issue is known to us and has been escalated to the concerned team for further investigation with tracking id 230256. We will let you know as soon as we get any update.

    In the meantime, you can get correct value using selectedIndex inside $timeout/setTimeout method.

    For reference, please see the updated fiddle that implements the same.

    Thanks,

    Manish Kumar Gupta

  • Posted 20 January 2018, 7:36 am EST

    Hi,

    We are sorry for the late reply.

    This issue has been verified as fixed with build 5.20173.403

    ~Manish

Need extra support?

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

Learn More

Forum Channels