cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

White spaces truncated while displaying data in sap.m.StandardListItem

2,298

Hi SAPUi5 experts,

I am facing one issue while displaying the data in StandardListItem which is bounded in a SelectDialog.

I am getting below data as output of odata read call which is correct (including white spaces in ZzPuom value).

I have set this data into a json model and bounded that to a SelectDialog. But the data is getting displayed with truncating multiple spaces into one.

However, i tried binding the same data to a sap.ui.Table and there i got data displayed including spaces.

Kindly help with your views to get the correct binding in List as well.

Thank you in advance.

View Entire Topic
mariusobert
Developer Advocate
Developer Advocate

Hi Happy,

this is related to the CSS definition of the control/aggregation. You can fix your issue by adding a custom css class to the listitem template and override the property:

    white-space: pre;

Regards,

Marius

0 Kudos

Hi Marius,

Thank you so much for your comment. It worked. 🙂

Best Regards,

Happy Chhillar