# Retaining checkboxlist state

**URL:** <https://forum.radzen.com/t/retaining-checkboxlist-state/12793>\
**Category:** Angular\
**Created:** [January 15, 2023, 10:03pm UTC](https://forum.radzen.com/t/retaining-checkboxlist-state/12793 "2023-01-15T22:03:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbhishekJ](https://forum.radzen.com/letter_avatar_proxy/v4/letter/a/a9adbd/32.png) [@AbhishekJ](https://forum.radzen.com/u/AbhishekJ)\
**Post date:** [January 15, 2023, 10:03pm UTC](https://forum.radzen.com/t/retaining-checkboxlist-state/12793/1 "2023-01-15T22:03:10Z")

</div>

Hello,

Considering we have a checkboxlist component with 5 options. A, B, C, D and E. If we select A and C and close the checkboxlist, the selected state goes away upon reopening the component. Is there any way to retain the selected state for the options which were selected in the previous session?

Thank you

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [January 16, 2023, 8:10am UTC](https://forum.radzen.com/t/retaining-checkboxlist-state/12793/2 "2023-01-16T08:10:07Z")

</div>

CheckBoxList is a form component - you can simply bind it to a property which represents an array of values:

> **[CheckBoxList (Angular)](https://www.radzen.com/documentation/checkboxlist/#angular)**
>
> CheckBoxList component properties and events
