How do I get a label to wrap on a list item? - Forum - Mobile - Progress Community

How do I get a label to wrap on a list item?

 Forum

How do I get a label to wrap on a list item?

This question is answered

I have a list item with a label, inside a grid.  When the data is returned, the label is running over the top of the arrow icon on the list.  Is there a way to make this wrap or cut off and show (...)?  It doesn't seem to matter if I change the label size or put in a second column on the grid, it still runs over like the image below.

Verified Answer
  • Hello,

    You can have a label wrap in a listview by using Create New -> CSS and entering the following code:

    .MyPhoneApp_mobilelabel_2 {

       white-space : normal;

    }

    Use "." and the name of the class. See how it looks below.

    I hope this helps.

All Replies
  • Does anyone have any thoughts on this?

  • Hello,

    You can have a label wrap in a listview by using Create New -> CSS and entering the following code:

    .MyPhoneApp_mobilelabel_2 {

       white-space : normal;

    }

    Use "." and the name of the class. See how it looks below.

    I hope this helps.

  • Thank you very much. That was perfect!