# Treeview with checkbox

**URL:** <https://forum.inductiveautomation.com/t/treeview-with-checkbox/38645>\
**Category:** Ignition\
**Created:** [September 14, 2020, 12:01pm UTC](https://forum.inductiveautomation.com/t/treeview-with-checkbox/38645 "2020-09-14T12:01:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![roinisan](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@roinisan](https://forum.inductiveautomation.com/u/roinisan)\
**Post date:** [September 14, 2020, 12:01pm UTC](https://forum.inductiveautomation.com/t/treeview-with-checkbox/38645/1 "2020-09-14T12:01:18Z")

</div>

Hello,

I need to create a treeview with check box - like the pic:

![Untitled](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/e/1efe359ec5fad58d819dddc85b6dbb976b9be8ff.png)

how can I do that?

thanks

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [September 14, 2020, 12:53pm UTC](https://forum.inductiveautomation.com/t/treeview-with-checkbox/38645/2 "2020-09-14T12:53:15Z")

</div>

I don’t know how either way, but pre-empting the first question: vision or perspective?

---

<div class="post-metadata">

**Author:** ![mcgheeiv](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mcgheeiv](https://forum.inductiveautomation.com/u/mcgheeiv)\
**Post date:** [September 15, 2020, 11:02am UTC](https://forum.inductiveautomation.com/t/treeview-with-checkbox/38645/3 "2020-09-15T11:02:21Z")

</div>

In vision, the treeview component allows the leaf icons to be designated for each item.

---

<div class="post-metadata">

**Author:** ![John\_John](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@John\_John](https://forum.inductiveautomation.com/u/John_John)\
**Post date:** [October 20, 2022, 11:35am UTC](https://forum.inductiveautomation.com/t/treeview-with-checkbox/38645/4 "2022-10-20T11:35:51Z")

</div>

I need to create a treeview with check box in perspective. Does anybody having an idea about it?  
Thank you

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [October 21, 2022, 7:10am UTC](https://forum.inductiveautomation.com/t/treeview-with-checkbox/38645/5 "2022-10-21T07:10:04Z")

</div>

It is possible to add an icon property to the items in a Perspective tree:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/a/fa52390d17564438271070d4e61bd7011cebef26.png)

Using this prop, it should be possible to use selection data and an onClick event script to switch back and forth between custom checkbox and uncheckbox icons.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/8/a8b9137e192f878f213f2022d742f34d14dedbe3.png)
