PDA

View Full Version : Column header



mheijink
1 May 2012, 6:46 AM
Hi, in gxt 2.2.5 i formatted the column header, for example :
dateColumn.setHeader( "Date off<br/>change")

With gxt3.0 the string the <br/> as well is displayed instead off a multiline header.

How can I solve this?

Marcel

sven
1 May 2012, 6:57 AM
You will need to use SafeHtml and do not pass it in as String.

mheijink
1 May 2012, 10:52 PM
I tried that but it doesn't help

SafeHtmlBuilder b= new SafeHtmlBuilder();
b.appendEscaped("Type<b>Formaat</b>");
format.setHeader(b.toSafeHtml());

sven
2 May 2012, 2:24 AM
Because you are escaping it now directly.

SafeHtmlUtils.fromTrustedString is what you are looking for.