# Clearing Row Selector Component

**URL:** <https://forum.inductiveautomation.com/t/clearing-row-selector-component/27241>\
**Category:** Ignition\
**Created:** [August 7, 2019, 6:19pm UTC](https://forum.inductiveautomation.com/t/clearing-row-selector-component/27241 "2019-08-07T18:19:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hachjessed](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@hachjessed](https://forum.inductiveautomation.com/u/hachjessed)\
**Post date:** [August 7, 2019, 6:19pm UTC](https://forum.inductiveautomation.com/t/clearing-row-selector-component/27241/1 "2019-08-07T18:19:34Z")

</div>

Is it possible to to clear the selections of a Row Selector Component any other way besides closing/opening the Vision Window it resides in? I attempted to use the **system.dataset.clearDataset()** script on a button component, but that didn’t do it. Any ideas would be appreciated.

---

<div class="post-metadata">

**Author:** ![hachjessed](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@hachjessed](https://forum.inductiveautomation.com/u/hachjessed)\
**Post date:** [October 24, 2019, 6:02pm UTC](https://forum.inductiveautomation.com/t/clearing-row-selector-component/27241/2 "2019-10-24T18:02:50Z")

</div>

Any thoughts on this?

---

<div class="post-metadata">

**Author:** ![hachjessed](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@hachjessed](https://forum.inductiveautomation.com/u/hachjessed)\
**Post date:** [November 10, 2020, 3:13pm UTC](https://forum.inductiveautomation.com/t/clearing-row-selector-component/27241/3 "2020-11-10T15:13:01Z")

</div>

Just wanted to close this topic out with a solution:

`.clearSelection()` can be used to clear all selections with in the Row Selector component

Example  
`event.source.parent.getComponent('Row Selector').clearSelection()`

Does anyone know if there is method to collapse/expand selections on a Row Selector component?

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [November 10, 2020, 4:13pm UTC](https://forum.inductiveautomation.com/t/clearing-row-selector-component/27241/4 "2020-11-10T16:13:37Z")

</div>

using the similar method above you should be able to call `event.source.parent.getComponent('Row Selector').setExpandAllDataNode(True)` (or False) but I haven’t tested it locally.

---

<div class="post-metadata">

**Author:** ![hachjessed](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@hachjessed](https://forum.inductiveautomation.com/u/hachjessed)\
**Post date:** [November 10, 2020, 4:57pm UTC](https://forum.inductiveautomation.com/t/clearing-row-selector-component/27241/5 "2020-11-10T16:57:02Z")

</div>

I believe this property only expands all nodes on windowOpen if set to True.

From manual:

> If true, the 'All Data' (root) node will be expanded and selected when the user opens this window.
