Listview control empty rows

0
Hi, Is there anyway to show “-” (dash) instead of empty cell values in listview  I have tried jquery but there is timing issue, sometimes it runs before listview is loaded and overwrites cell values with dash.
asked
5 answers
2

Hi Samim,

Use visibility condition. Check the empty condition for the entity attribute.
Please find the below image,

answered
0

Hi Samim

This could be done with with CSS content

https://www.w3schools.com/cssref/pr_gen_content.asp

Add to you theme CSS

.dash-empty li.mx-listview-empty label {
   display: none;
}

.dash-empty li.mx-listview-empty:after {
    content: "-";
}

 

This CSS will do it for all list views that have a css class `dash-empty` Add this class to your list view

 

Cheers, Andries

answered
0

Just to clarify I want to show dash for each cell that is empty in listview.

answered
0

Hi Andries Smit,

“mx-listview-empty” only gets assigned when the listview is empty. 

My scenario is different listview is not empty, rather it has some cell values that are empty I want those cells to have dashes – I cannot add dashes in model for empty values as validation would fail otherwise. Hope it makes it a bit clear

Thanks

answered
0

If it is an input field you can try the selector: input[value=""]

else give :empty  a try, combined with what Andries wrote

answered