Posted 16 November 2020, 4:25 am EST
For some reason, the alignment of my grid is not consistent. I see the header columns align right, center and left. See below.Is the a setting to align the header column
Forums Home / Spread / DataViewsJS Topics
Posted by: johngiblin on 16 November 2020, 4:25 am EST
Posted 16 November 2020, 4:25 am EST
For some reason, the alignment of my grid is not consistent. I see the header columns align right, center and left. See below.Replied 17 November 2020, 6:29 pm EST
Hi,var cols = [
{
id: 'title',
caption: 'Title',
dataField: 'title',
cssClass: "center"
}
]
let dv = new GC.DataViews.DataView(document.getElementById('grid'), data, cols, new GC.DataViews.GridLayout());
//in Css file
.center{
text-align: center;
}
Replied 11 December 2020, 3:02 am EST
So it appears if there is no data in a column the alignment changesMarked as Answer
Replied 13 December 2020, 7:31 pm EST
Hi John,