Version (not important) SmartClient Version: SNAPSHOT_v12.1d_2020-02-21/PowerEdition Deployment (built 2020-02-21)
This conundrum was started by attempting to align the header of a ListGrid float field to Alignment.LEFT, when the field was defined from within a SQL Datasource XML file. It appears, confirmed by looking at the GWT Showcase, that the default behavior ( which is appropriate ) is to align column header text to the RIGHT for float and integer type fields.
I attempted to confirm that by looking up the documentation, for the XML DataSource directive for 'type="float"'. I examined https://www.smartclient.com/smartgwt...urceField.html, and see that this applies to JAVA field definitions.
I believe a few years ago I found/saw documentation on the raw XML descriptors of an XML Datasource, but I can't find it again. Can you point me to it?
I can't google or find anything that states in words that float, or integer types cause the header text to align to the RIGHT. Does such documentation exist?
I attempted to change the header title alignment to Alignment.LEFT in an override of the drawHandler for this grid, but that failed. I was finally able to change the alignment to LEFT by overriding the setFields() of ListGrid and forcing the setAlign(Alignment.LEFT) for that field. Does that seem correct to you? Shouldn't the drawHandler() override have worked?
This conundrum was started by attempting to align the header of a ListGrid float field to Alignment.LEFT, when the field was defined from within a SQL Datasource XML file. It appears, confirmed by looking at the GWT Showcase, that the default behavior ( which is appropriate ) is to align column header text to the RIGHT for float and integer type fields.
I attempted to confirm that by looking up the documentation, for the XML DataSource directive for 'type="float"'. I examined https://www.smartclient.com/smartgwt...urceField.html, and see that this applies to JAVA field definitions.
I believe a few years ago I found/saw documentation on the raw XML descriptors of an XML Datasource, but I can't find it again. Can you point me to it?
I can't google or find anything that states in words that float, or integer types cause the header text to align to the RIGHT. Does such documentation exist?
I attempted to change the header title alignment to Alignment.LEFT in an override of the drawHandler for this grid, but that failed. I was finally able to change the alignment to LEFT by overriding the setFields() of ListGrid and forcing the setAlign(Alignment.LEFT) for that field. Does that seem correct to you? Shouldn't the drawHandler() override have worked?
Comment