Hi Mats,
You can use the following JavaScript code with the HTML Snippet widget. Put this at the bottom of your page.
mx.addOnLoad(function () {
var searchDropDownList = document.querySelectorAll('.mx-grid-search-item select');
for (var i = 0; i < searchDropDownList.length; i++) {
// Get the ID from the parent parent
var searchDropDownID = searchDropDownList[i].parentElement.parentElement.id;
// Search for the option where the value ends on a _, that is the option value for (empty)
var emptyOption = searchDropDownList[i].querySelector('[value=' + searchDropDownID + '_]');
if (emptyOption) {
searchDropDownList[i].removeChild(emptyOption);
}
}
})
I’ve set the following options:
I’ve tested it in Studio Pro 8.12.5.
Cheers,
Jeffrey