suseday
November 25, 2017, 8:14am
1
Hi. I want to set the text in the grid vertically aligned to the top of the cells. I tried all this but mothing worked
$("#frmPassageGrid ").css(“textAlign”, “top”)
$("#frmPassageGrid ").css(“vertical-align”, “top”)
$("#frmPassageGrid ").css(“align-middle”, “margin-top: 0px”)
$("#frmPassageGrid .align-middle").css(“margin-top”,“0px”);
What to do? Any idea?
johnC
November 25, 2017, 2:33pm
2
This works in html tables but haven’t tried this (valign=‘top’) in the Common Grid:
<td width='40%' align='center' valign='top' border='0'><font face='Times New Roman' pts='8'>" & serviceData & "</font></td>")
John
suseday
November 25, 2017, 2:45pm
3
Hi John
thank you. But that doesn’t work either
ghenne
November 25, 2017, 8:54pm
4
You can do this cell by cell:
Grid1.cell(0,0).style.verticalAlign="top"
suseday
November 26, 2017, 4:18am
5
Great!!! I couldn’t find that in the documentation.
Of course you can (and want) not put all css functionality into the doc http://wiki.nsbasic.com/Grid but a reference to a site that lists all the css functionality of the grid might be helpfull.