- Home
- Forum
- Xamarin.Forms
- Font size of GridTemplateColumn
Font size of GridTemplateColumn
Hi,
I have a TimePicker in a GridTemplateColumn (via DataTemplate, of course). I know the CellTextSize property of GridColumn, but that seemimgly does not to work here.
My questions:
I have a TimePicker in a GridTemplateColumn (via DataTemplate, of course). I know the CellTextSize property of GridColumn, but that seemimgly does not to work here.
My questions:
- Does CellTextSize work for GridTemplateColumn at all?
- If so, will it be propagated to controls inside the DataTemplate?
- If not, is there a general way of setting the font size in GridTemplateColumn?
Kind regards
using:
Xamarin Forms 2.3.4
Syncfusion ES 15.1.0.41
SIGN IN To post a reply.
3 Replies
PS
Pavithra Sivakumar
Syncfusion Team
May 8, 2017 12:34 PM UTC
Hi Kind,
Thanks for contacting Syncfusion support.
Regarding your first query of “Does CellTextSize work for GridTemplateColumn at all ”
Initially, we don’t know which view would be loaded inside GridTemplateColumn. So, CellTextSize property is not applicable for GridTemplateColumn.
Regarding your Second query of “If so, will it be propagated to controls inside the DataTemplate ”
As mentioned in the previous query, CellTextSize is not works for GridTemplateColumn.
Regarding your third query of “If not,is there a general way of setting the font size in GridTemplateColumn ”
There is no general way available for setting the font size in GridTemplateColumn. For TimePicker, there is no inbuild FontSize property. However, you can achieve your requirement of setting font size for TimePicker by customizing the TimePickerRenderer.
We have prepared a sample based on your requirement and please download the same from below link.
Sample Link : http://www.syncfusion.com/downloads/support/forum/130334/ze/TimePickerInForms-2025227216
Sample Link : http://www.syncfusion.com/downloads/support/forum/130334/ze/TimePickerInForms-2025227216
Regards,
Pavithra S
BK
bkind
May 9, 2017 08:41 PM UTC
Hi again and thank you for your answer.
Concerning GridTemplateColumn format options, well, I have to admit that I was hoping for some magic trick. But o the other hand I suspected something like having to write a renderer. So thank you for the sample code, too.
By the way, kudos to you and the team at Syncfusion for giving competent answers promptly! Which is nothing I could say about a lot of other software companies.
Kind regards
Concerning GridTemplateColumn format options, well, I have to admit that I was hoping for some magic trick. But o the other hand I suspected something like having to write a renderer. So thank you for the sample code, too.
By the way, kudos to you and the team at Syncfusion for giving competent answers promptly! Which is nothing I could say about a lot of other software companies.
Kind regards
PS
Pavithra Sivakumar
Syncfusion Team
May 10, 2017 09:56 AM UTC
Hi Kind,
Thanks for the feedback. We are glad that we were able to help you resolve the issue. Please contact Syncfusion Support in case of any other queries.
Regards,
Pavithra S
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
BK bkind
- May 7, 2017 09:50 PM UTC
- May 10, 2017 09:56 AM UTC