How is your experience with the OutSystems Community?
13
Views
2
Comments
Solved
Add border to the 10th option/value in dropdownsearch widget

Hi All

I need to add a bottom border to the 10th option/value in dropdownsearch widget. we have top 10 list and bottom list in the same dropdown. we want to separate the top list from the bottom list by a border

Kindly provide your valuable suggestion

Thanks

Kumar

2026-01-28 16-57-48
Mihai Melencu
Champion
Solution

Hi @saravanakumar v ,

You can use the following CSS: 

  • .top-list-dropdown-popup.vscomp-option[data-index="9"] {   
  •  border-bottom: 1px solid red;
  • }

The reason we use the index 9 is because data-index is zero-based, so 9 is the tenth option.

In order to apply it properly you need to use SetVirtualSelectConfigs > additionalClasses in the OnInitialize event of the dropdown search and add the class name top-list-dropdown-popup .

I attached an OMl with the implementation as well.

DropdownSearchBorder.oml
UserImage.jpg
saravanakumar v

Thanks Mihai.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.