Line wrap in ListView header

  • 9 January 2013
  • 4 replies
  • 4 views

Badge +2

Hi,


Is possible to set Line Wrap option, if Header Text in list view too long?


4 replies

Userlevel 4
Badge +13

Hi Alexey,


 


Please have a look at this posting: http://community.k2.com/t5/K2-blackpearl/Block-of-text-on-the-form/m-p/76608#M22280


If this is not what you are referring to then please add a screenshot of what it is you are trying to achieve in order for us to better understand your requirement.


 


Kind regards,


Raymond


 

Badge +10

I think you mean the actual Header of the list view. Previouly, what I have done especially for the list view is that, it has two header sections. So you have one header sectin for the header tect and then anther header section for the toolbar buttons and then another header section for the coloumn headers. The item view obviouly nly has one header section. 

 

So What I've dne is to combine the toolbar header and the actual header into one buy splitting the toolbar section nto two coloumns. Addign a datalabel with styling to match the actual header. ON this you can set the wrap text option for that data label. When adding the view to the form, do not give it a name in the header asit already contains that in the view now. This way it will not add that extra header.

 

Hope this helps. 

Badge +10

Hi,

 

Yes very simple and possible.

When in the list view designer, click on the column you want to have line wrapped.

In the right corner, click the Header tab.

Select and enable the Wrap Text option.

 

This should wrap the text for that column.

 

Doing this for the Body tab will wrap the column contents, so make sure you do it on the header tab.

 

Let us know if this does not work.

 

Regards,

JohanL

Userlevel 4
Badge +13

Hi ,


 


Do note that there is a difference between Line, Word and Text Wrap:



  1. Word Wrap = Is a feature that causes the word processor to force all text to fit within the defined margins. When you fill one line with text, the word processor automatically jumps to the next line.
  2. Text Wrap = Is a feature enables you to surround a picture or diagram with text. The text wraps around the graphic.
  3. Line Wrap = Is the feature of continuing on a new line when a line is full, by doing this full words might be cut to be able to continue on the next line so that each line fits in the viewable window.

When saying "Line Wrap", if you mean to say "Word Wrap" then Yes, it is possible by following the steps provided by Johan which will give you the outcome in the screenshot.


Otherwise if you mean "Line Wrap" as stated in your sentence and NOT "Word Wrap" which is provided by the K2 Designer then you will need to use some html inline code inside of the text property of the header to Line wrap the text contained in the header.


 


Fyi - K2 Designers "Wrap Text" property executes a Word Wrap which can either be normalreak-word.


 


Please see my screenshot:


 


11533i5CDC9D06C42A7CC2.png


 


 


References:


https://answers.yahoo.com/question/index?qid=20080201161644AAgwoII


http://en.wikipedia.org/wiki/Line_wrap_and_word_wrap


http://xahlee.info/js/css_text-wrap.html


 


Kind Regards,


Raymond

Reply