How to set HeaderCellTextSize

Hi all,

I need to reduce the font size in my grid. Therefore I use the following code:

MyColumn.HeaderCellTextSize = MyColumn.HeaderCellTextSize.WithSize(10f); // Doesn't work!
MyColumn.CellTextSize = 10f;     // Works!

HeaderCellTextSize doesn't work at all!! I can't set the font size of the header cells!
The name HeaderCellTextSize suggests that I need to provide a number, but HeaderCellTextSize is of type UIFont.

Your documentation is also very wrong (http://help.syncfusion.com/cr/cref_files/xamarin-ios/sfdatagrid/Syncfusion.SfDataGrid.iOS~Syncfusion.SfDataGrid.GridColumn~HeaderCellTextSize.html)
dataGrid.Columns.Add (new GridTextColumn () { 
    MappingName = "Freight",
    HeaderCellTextSize = 16
    });
This is totally wrong as you cannot set HeaderCellTextSize to a number. But nevertheless setting it to a UIFont doesn't work either.

BTW: Your documentation mentioned above says that the default text size would be 12, that is also wrong. It is 14!

How can I set the font size of the header cells? I need to reduce it because otherwise the grid will not fit on iPhoneSE and I can't use your grid.

Regards
Michael



4 Replies

MI Michael March 31, 2018 09:07 AM UTC

I now found a way around this issue:

I can also set the font for the header by:

MyColumn.HeaderFont = MyColumn.HeaderFont.WithSize(10f);

and this works as intened. Nevertheless the property HeaderCellTextSize is weird.


SK Suriya Kalidoss Syncfusion Team April 2, 2018 12:53 PM UTC

Hi Michael

Sorry for the inconvenience caused.
 
 
We have checked the reported issue and confirmed that the issue with “Updating the float values HeaderCellTextSize” is a defect and we have logged a defect report. The fix for this issue will be available in our next release 2018 Volume1 Sp2. We appreciate your patience until then. Your workaround to achieve the behavior is correct and you can continue to use it in the meantime. We will also ensure to update the documentation accordingly in our side once the changes were done.  
 
Regards, 
Suriya K 



MI Michael November 17, 2018 08:31 PM UTC

Hi,

In the meantime you obviously corrected the mentioned bug, but at the same time you introduced a new one.
Now setting HeaderCellTextSize works perfectly but setting

MyColumn.HeaderFont = MyColumn.HeaderFont.WithSize(10f);

doesn't work anymore.

Regards
Michael



VR Vigneshkumar Ramasamy Syncfusion Team November 19, 2018 10:46 AM UTC

Hi Michael,

Sorry for the inconvenience,

We were able to reproduce the reported issue with “HeaderFont doesn’t work anymore” at our end and we are validating reported issue. A support incident has been created under your account to track this issue.
 

Please log on to our support website to check for further updates.


http://www.syncfusion.com/Account/Logon?ReturnUrl=%2fsupport%2fdirecttrac/  

Regards, 
Vigneshkumar R 


Loader.
Up arrow icon