# Disabling the selected record indicator

**URL:** <https://forum.servoy.com/t/disabling-the-selected-record-indicator/10775>\
**Category:** Classic Servoy\
**Created:** [June 12, 2009, 5:23pm UTC](https://forum.servoy.com/t/disabling-the-selected-record-indicator/10775 "2009-06-12T17:23:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaptan](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@Kaptan](https://forum.servoy.com/u/Kaptan)\
**Post date:** [June 12, 2009, 5:23pm UTC](https://forum.servoy.com/t/disabling-the-selected-record-indicator/10775/1 "2009-06-12T17:23:10Z")

</div>

Is it possible to turn off the selected record indicator in list view (the black rectangle on the left)?

On the forum I could only find an old post to achieve this by putting an element on top. I was hoping that I could turn it completely off without having to apply tricks.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 12, 2009, 8:01pm UTC](https://forum.servoy.com/t/disabling-the-selected-record-indicator/10775/2 "2009-06-12T20:01:29Z")

</div>

Nope, as far as I know you need to place an element over the left side.

---

<div class="post-metadata">

**Author:** ![ptalbot](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/ptalbot/32/4952_2.png) [@ptalbot](https://forum.servoy.com/u/ptalbot)\
**Post date:** [June 12, 2009, 8:18pm UTC](https://forum.servoy.com/t/disabling-the-selected-record-indicator/10775/3 "2009-06-12T20:18:47Z")

</div>

Have you tried setting a rowBGColorCalculation?  
You can use a global method returning a simple color and I believe it will not show, or you can add alternate row coloring, and even show the select row with a third color. For example:

```auto
function GENERIC_row_background()
{
	var index = arguments[0]; // index of the "current row" iterated
	var selected = arguments[1]; // is true is selected
	
	if (selected) {
		return '#BED7F7';
	}
	else {
		if (index % 2 == 0) {
			return '#F7F8EF';
		}
		else {
			return '#FFFFFF';
		}
	}
}

```

I have found out that using this code, you don’t have the annoying black rectangle anymore, so I believe that even with only one color returned (no tests, just a plain color String), it should do the trick…

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 12, 2009, 10:22pm UTC](https://forum.servoy.com/t/disabling-the-selected-record-indicator/10775/4 "2009-06-12T22:22:54Z")

</div>

> ROCLASI:  
> Nope, as far as I know you need to place an element over the left side.

I guess Patrick proved me wrong. Yes there is a way. Use the rowbgcolor calc.

---

<div class="post-metadata">

**Author:** ![Kaptan](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@Kaptan](https://forum.servoy.com/u/Kaptan)\
**Post date:** [June 12, 2009, 11:02pm UTC](https://forum.servoy.com/t/disabling-the-selected-record-indicator/10775/5 "2009-06-12T23:02:14Z")

</div>

Thanks Patrick! It works! ![:D]( "Very Happy")

Because I don’t need any highlighting at all, I created a function that simply returns ‘#ffffff’ for a white background. The selected record indicator disappears!
