So, basically what I’m trying to do is making it so when the server sends back results like:
"Car Boat House"
That jqgrid will populate them in a cell like:
Car
Boat
House
I’m using the css method of telling jqgrid to do multiline on this cell with this:
cellattr : function(rowId, tv, rawObject, cm, rdata) {
return 'style="white-space: normal"';
}
Is there any way to do this? Some kind of “preFill” method for jqGrid I didn’t see that would let me substitute:
" "
for
"<br/>"
on the fly?
I had success forcing my server to jam in the break as the delimiter, but I wept as I wrote it and had to remove it immediately for fear of bursting into flames for sinful coding.
Pass the value of the cell to a formatter function. See http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter