# Custom Dropdown List (from Lightswitch)

**URL:** <https://forum.radzen.com/t/custom-dropdown-list-from-lightswitch/585>\
**Category:** Angular\
**Created:** [October 11, 2018, 6:03pm UTC](https://forum.radzen.com/t/custom-dropdown-list-from-lightswitch/585 "2018-10-11T18:03:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshwilliam](https://forum.radzen.com/user_avatar/forum.radzen.com/joshwilliam/32/538_2.png) [@joshwilliam](https://forum.radzen.com/u/joshwilliam)\
**Post date:** [October 11, 2018, 6:03pm UTC](https://forum.radzen.com/t/custom-dropdown-list-from-lightswitch/585/1 "2018-10-11T18:03:04Z")

</div>

In Lightswitch we had access to create a field on a table that had a custom list of dropdown items that are not stored in a related table but directly in the code. I have used this for some status columns before for a choice list like Active / InActive. How would this be done in Radzen?

---

<div class="post-metadata">

**Author:** ![SeaderGamer](https://forum.radzen.com/user_avatar/forum.radzen.com/seadergamer/32/455_2.png) [@SeaderGamer](https://forum.radzen.com/u/SeaderGamer)\
**Post date:** [October 11, 2018, 6:07pm UTC](https://forum.radzen.com/t/custom-dropdown-list-from-lightswitch/585/2 "2018-10-11T18:07:15Z")

</div>

Hello josh, if I understand correctly you want to relate the dropdown with something manual right?  
I did this by setting a property, and giving it an array value, and dropdown referencing it.  
a example (this is in the load)

 ![Sem%20t%C3%ADtulo](https://forum.radzen.com/uploads/default/original/1X/f5b0a93e1b82ef67fc36570143a95696065515d5.png)

---

<div class="post-metadata">

**Author:** ![joshwilliam](https://forum.radzen.com/user_avatar/forum.radzen.com/joshwilliam/32/538_2.png) [@joshwilliam](https://forum.radzen.com/u/joshwilliam)\
**Post date:** [October 11, 2018, 7:53pm UTC](https://forum.radzen.com/t/custom-dropdown-list-from-lightswitch/585/3 "2018-10-11T19:53:35Z")

</div>

I’m able to create the property on the load but when I try to bind the field I’m a bit lost. The field type is String but I don’t seem to be able to set that to dropdown. This is on a CRUD generated Add dialog page. The form and all fields were automatically created.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [October 11, 2018, 8:22pm UTC](https://forum.radzen.com/t/custom-dropdown-list-from-lightswitch/585/4 "2018-10-11T20:22:41Z")

</div>

Hi @joshwilliam,

You need to set the Data property of the lookup form field. It should appear in the dropdown. Then TextProperty and DataProperty.

 ![24](https://forum.radzen.com/uploads/default/original/1X/ceff4eef9c8b3227920853f348cf57c4db3fe45a.png)
