JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › ListBox › Set items read only (from data source) (Blazor) › Reply To: Set items read only (from data source) (Blazor)
November 22, 2021 at 6:02 pm
#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/