• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

NAB - Custom grid formatting in PDF

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NAB - Custom grid formatting in PDF

    Hi,

    I have some custom formatting in my grid, mostly showing additional data on a new line in the same cell.

    I use code like this:
    PHP Code:
    '<div style="white-space-normal">'+
    '<div>{transporterFormatted}</div>'+
    '<div>{transporterOrderFormatted}</div>'+
    '</div>' 
    In the PDF the values of transporterFormatted and transporterOrderFormatted are shown on the same line.

    So I got his in my PDF:
    PHP Code:
    BEAUTY BIOSCIENCEUnited Kingdom 
    I would like to see
    PHP Code:
    BEAUTY BIOSCIENCE
    United Kingdom 

    How can I force a new line in the PDF also?

    Regards,
    Theo

  • #2
    PDF will handle new lines if you're using <br> "line break element". For example:

    Code:
    return v + '<br>' + rec.get('CCITY') + ' ' + rec.get('CCOUNTRY');

    Comment

    Working...
    X