#102579
ivanpeevski
Participant

Hello TurricanDE,

In this case, you only need to modify the line inside the foreach loop, by setting the Item Label inside a Label property:

<ListItem Value=”@(myListBoxItem.Value)” Readonly=”@(myListBoxItem.Readonly)” Label=”@(myListBoxItem.Label)”></ListItem>

 

Please, let me know if this works for you!
If you have any other questions, please do not hesitate to contact us again.

Best regards,
Ivan Peevski
Smart UI Team
https://www.htmlelements.com/