Font size modified in edition mode

Hi,

I wonder if it's possible to keep the font size when a cell is in edition mode. I changed the treegrid's font size using the property "FontSize" to 12, but when I enter in edition mode, the font seems to be changing:

As you can see, the second highlighted line is bigger than the first one, and textbox is cropped.

Regards,

Daniel

3 Replies 1 reply marked as answer

VS Vijayarasan Sivanandham Syncfusion Team June 3, 2021 06:09 AM UTC

Hi Daniel Garcia,

Thank you for contacting Syncfusion Support. 
In SfTreeGrid, TextBox loaded  as editor element in TreeGridTextColumn. Your requirement of change the font size in edition mode can be achieved by font size of TextBox can be changed by writing style as below, 
<Page.Resources> 
        <!--TreeGridNumericColumn editor element Set font size--> 
        <Style TargetType="editors:SfNumericTextBox"> 
            <Setter Property="FontSize" Value="12"/> 
        </Style> 
        <!--TreeGridTextColumn editor element Set font size--> 
        <Style TargetType="TextBox"> 
            <Setter Property="FontSize" Value="12"/> 
        </Style> 
</Page.Resources> 
SfTreeGrid provides support for various built-in column types. Each column has its own properties and renderer for more details please refer the below documentation link. 
Please let us know if you have any concerns in this.

Regards,
Vijayarasan S 


Marked as answer

DG Daniel Garcia June 7, 2021 09:59 AM UTC

Hi Vijayarasan Sivanandham,

That's what I needed, thank's a lot!

Regards,


VS Vijayarasan Sivanandham Syncfusion Team June 7, 2021 10:17 AM UTC

Hi Daniel Garcia, 

Thanks for the update. 

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you😊

Regards, 
Vijayarasan S 


Loader.
Up arrow icon