Wj-combo-box

Posted by: riya.katawate16 on 20 October 2021, 12:54 am EST

  • Posted 20 October 2021, 12:54 am EST

    Hi,
    I have a wj-combox-box. values are getting displayed in combo box. my question is if I select any value in combo box. on page refresh, i want the my selected value as default value of combo box. how can i achieve this.

    Thanks
  • Marked as Answer

    Replied 31 October 2021, 5:19 pm EST

    Hello,

    The issue has already been addressed on a different forum thread, please refer to the forum thread link for reference: https://www.grapecity.com/forums/wijmo/wj-combo-box-

    Response:

    To store and restore the selected value after page refresh you may save the selectedValue of the ComboBox on window.onbeforeunload to the localStorage and restore the selected value on the window.onload. Please refer to the sample link below demonstrating the same:

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


    Regards
Need extra support?

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

Learn More

Forum Channels