I知 using SmartGWT 5.1-p20170201 on Firefox 26.0 on Windows.
I am trying to have a single cell have wrapping in a list grid. I知 using the method ListGridField.setWrap(true).
Text in the cell does not wrap.
Here is my test code
I am trying to have a single cell have wrapping in a list grid. I知 using the method ListGridField.setWrap(true).
Text in the cell does not wrap.
Here is my test code
Code:
[B]public[/B] [B]class[/B] ListgridCellWrapEntry [B]extends[/B] ListGrid [B]implements[/B] EntryPoint { [B]private[/B] [B]static[/B] [B]final[/B] String [B][I]WRAP[/I][/B] = "wrap"; [B]private[/B] [B]final[/B] List<String> wrapContent = Arrays.[I]asList[/I]("Assertively deploy synergistic experiences", "Synergistically orchestrate cross-media synergy", "Collaboratively optimize future-proof services", "Holisticly strategize 24/7 collaboration and idea-sharing", "Energistically harness progressive fungibility", "Globally maximize orthogonal infomediaries", "Dynamically aggregate client-centric total linkage", "Objectively harness value-added outsourcing", "Credibly disintermediate efficient markets"); @Override [B]public[/B] [B]void[/B] onModuleLoad() { show(); setFields([B]new[/B] ListGridField([B][I]WRAP[/I][/B]) { { setWidth(150); setWrap([B]true[/B]); } }); setData(wrapContent.stream() .map(text -> { ListGridRecord record = [B]new[/B] ListGridRecord(); record.setAttribute([B][I]WRAP[/I][/B], text); [B]return[/B] record; }) .toArray(ListGridRecord[]::[B]new[/B])); } }
Comment