Lowercase on TreeGridTextColumn

Hi,

The first characer of a TreeGridTextColumn is a capital letter.  How can I change the behaviour and use lower case ? Is there any property doing that?

Regards,

16 Replies 1 reply marked as answer

VS Vijayarasan Sivanandham Syncfusion Team March 16, 2021 01:17 PM UTC

Hi Daniel Garcia,

Thank you for contacting Syncfusion support.

In SfTreeGrid display the data based on data source loaded to SfTreeGrid.ItemsSource property. if data source contains the capital Letter for first character that will be displayed in SfTreeGrid.

Sample Link: https://www.syncfusion.com/downloads/support/forum/163511/ze/Sample-669049828
 
Can you please confirm If data source contains the first character of capital Letter should be displayed as lower case? 
It will be helpful for us to check on it and provide you the solution at the earliest.

Regards,
Vijayarasan S
 



DG Daniel Garcia March 16, 2021 02:03 PM UTC

Hi,

I notice I forgot to say something important: this is happens when I enter in edition mode by typing any letter. When the cell is empty and I want to writte something inside, the first character is always a capital letter.

About sample, I can confirm it's ok, the first character of capital letter is displayed as lower case.

Regards,




VS Vijayarasan Sivanandham Syncfusion Team March 17, 2021 02:23 PM UTC

Hi Daniel Garcia,

Thanks for the update.
 
We are little unclear with your scenario. Can you please provide the more information related to your query?

Can you please share us below things?
       
        1.
Provide video illustration of the reported issue
        2.
Provide more details about your scenario with illustrations?
        3. Provide code snippet related to customization in SfTreeGrid
 
It will be helpful for us to check on it and provide you the solution at the earliest.

Regards,
Vijayarasan S
 



DG Daniel Garcia March 17, 2021 02:50 PM UTC

Hi,

Sorry, I wasn't very clear. In attached file, a gif illustrating the case.

As you can see, when I edit an editable cell, the first character is a capital letter. My need is to type 'e' instead of 'E'

<sfTreeGrid:SfTreeGrid x:Name="treeGridComponents" Visibility="Visible" 
                                   ItemsSource="{x:Bind groupComponentList}" 
                                   AutoGenerateColumns="False"
                                   AllowResizingColumns="True"
                                   AllowFocusOnInteraction="True"
                                   EditorSelectionBehavior="SelectAll"
                                   AllowSorting="False"
                                   AllowSelectionOnPointerPressed="False"
                                   EditTrigger="OnTap"
                                   SelectionMode="Extended"
                                   AutoExpandMode="AllNodesExpanded"
                                   RowHeight="28"
                                   BorderThickness="0"
                                   ChildPropertyName="Children"
                                   ExpanderCellStyleSelector="{StaticResource cellStyleSelector}"
                                   CellStyleSelector="{StaticResource cellStyleSelector}"
                                   ContextFlyout="{StaticResource menuFlyoutGrid}"
                                   CurrentCellEndEdit="treeGridComponents_CurrentCellEndEdit"
                                   CurrentCellBeginEdit="treeGridComponents_CurrentCellBeginEdit"
                                   CellTapped="treeGridComponents_CellTapped"
                                   ExpanderColumn="Description"
                                   FrozenColumnCount="2"
                                   AllowEditing="True"
                                   ResizingColumns="treeGridComponents_ResizingColumns">
                    ...
                    <sfTreeGrid:TreeGridTextColumn Width="{x:Bind cs.CalculationLinePage_Heightformula}" MappingName="Heightformula" x:Uid="TextHeightFormula" UpdateTrigger="PropertyChanged" AllowEditing="True"/>
                    ...

Regards,



Attachment: Illustration_b3176ec4.7z


VS Vijayarasan Sivanandham Syncfusion Team March 18, 2021 04:52 PM UTC

Hi Daniel Garcia,

Thanks for the update. 
We could able to reproduce your reported issue “first character is always a capital letter while enter edit mode in keyboard in SfTreeGrid” from our end. Currently, we are checking the feasibility to fix this issue from our end. We will validate and update you details on March 22, 2021. 
We appreciate your patience until then.

Regards,
Vijayarasan S
 



VS Vijayarasan Sivanandham Syncfusion Team March 22, 2021 06:03 PM UTC

Hi Daniel Garcia,

Sorry for the inconvenience.   

We are still working on this. We will update with further details on
March 24, 2021. We appreciate your patience and understanding.

Regards,
Vijayarasan S
 



VS Vijayarasan Sivanandham Syncfusion Team March 23, 2021 01:46 PM UTC

Hi Daniel Garcia,

Thank you for your patience

We have created bug report for the reported issue
“First character is always show capital letter when enter edit mode via pressing character (A to Z) in SfTreeGrid”. Can you please confirm, which version you are using currently?

It will be helpful for us to provide patch in that version.

Regards,
Vijayarasan S
 



DG Daniel Garcia March 23, 2021 01:54 PM UTC

Hi Vijayarasan Sivanandham

Thank you for reporting this bug.

I am using the version 18.4.0.30.

Regards,



VS Vijayarasan Sivanandham Syncfusion Team March 23, 2021 01:59 PM UTC

Hi Daniel Garcia,

Thanks for the update.

We have created bug report for the reported issue “First character is always show capital letter when enter edit mode via pressing character(A to Z) in SfTreeGrid”. We will fix this issue and provide you with patch on April 08, 2021.

You can track the status of this report through the following feedback link,

Feedback link:  
https://www.syncfusion.com/feedback/23615/first-character-is-always-show-capital-letter-when-enter-edit-mode-via-pressing 
Note: The provider feedback link is private, and you need to login to view this feedback.

We appreciate your patience until then.

Regards,
Vijayarasan S
 



VS Vijayarasan Sivanandham Syncfusion Team April 8, 2021 03:48 PM UTC

Hi Daniel Garcia,

Thank you for your patience.
 
 
We have fixed the issue “First character is always show capital letter when enter edit mode via pressing character(A to Z) in SfTreeGrid” and fixed the issue. You can download the patch from following location. 

 
  v18.4.0.30 
Recommended approach – exe will perform automatic configuration       
Please find the patch setup here:   

 

Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment                       
 
Please find the patch assemblies alone from: 

 
Please find the NuGet’s from the below location: 

 
 
  
Assembly Version: 18.4.0.30 
Installation Directions:  
This patch should replace the files “Syncfusion.SfGrid.UWP” under the following folder. 
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\4.0  
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\18.4.0.30\precompiledassemblies\18.4.0.30\4.0  
   
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location, or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies. 

Feedback Link:
https://www.syncfusion.com/feedback/23615/first-character-is-always-show-capital-letter-when-enter-edit-mode-via-pressing 
 
Note:  
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.  
   
   
Disclaimer:  
If you have received other patches for the same version for other products, please apply all patches in the order received. Please note that we have created this patch for version 18.4.0.30 specifically to resolve the following issue reported in the Forum 163511.

 
Regards, 
Vijayarasan S 


Marked as answer

DG Daniel Garcia April 12, 2021 05:52 AM UTC

Hi Vijayarasan Sivanandham

It works fine. Thank you for your job.

Regards,


VS Vijayarasan Sivanandham Syncfusion Team April 12, 2021 01:39 PM 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 



DG Daniel Garcia July 15, 2021 07:27 AM UTC

Hi,

I noticed something wrong: when I enter edit mode via pressing Shift + any character, the letter isn't a capital letter. I need a workarround to fix this issue. 

For your information, I am using the version 19.2.0.44.

Regards,





VS Vijayarasan Sivanandham Syncfusion Team July 16, 2021 12:35 PM UTC

Hi Daniel Garcia,

Thanks for the update.

Your requirement can be achieved by override the OnPreviewTextInput method by using TreeGridCellTextBoxRendererExt in SfTreeGrid. Please refer the below code snippet, 
treeGridComponents.CellRenderers.Remove("TextBox"); 
treeGridComponents.CellRenderers.Add("TextBox", new TreeGridCellTextBoxRendererExt()); 
 
public class TreeGridCellTextBoxRendererExt : TreeGridCellTextBoxRenderer 
{ 
        protected override void OnPreviewTextInput(KeyRoutedEventArgs e) 
        {            
            if (e == null) return; 
            base.OnPreviewTextInput(e); 
            if (e.Key >= VirtualKey.Number0 && e.Key <= VirtualKey.Number9) 
                PreviewInputText = (e.Key - VirtualKey.Number0).ToString(); 
            else if (e.Key >= VirtualKey.NumberPad0 && e.Key <= VirtualKey.NumberPad9) 
                PreviewInputText = (e.Key - VirtualKey.NumberPad0).ToString(); 
            else if ((e.Key >= VirtualKey.A && e.Key <= VirtualKey.Z)) 
            { 
                var capsLockKeyState = Window.Current.CoreWindow.GetKeyState(VirtualKey.CapitalLock); 
                
                var shiftKeyState = Window.Current.CoreWindow.GetKeyState(VirtualKey.Shift); 
 
                if ((capsLockKeyState & CoreVirtualKeyStates.Locked) != 0 || (shiftKeyState & CoreVirtualKeyStates.Down) != 0) 
                    PreviewInputText = e.Key.ToString(); 
                else 
                    PreviewInputText = char.ToLower((char)e.Key).ToString(); 
            } 
        } 
} 

For more information related to customize column renderer event, please refer the user guide documentation,

UG Link:
https://help.syncfusion.com/uwp/treegrid/columntypes#customize-column-renderer 

Please let us know if you have any concerns in this. 

Regards, 
Vijayarasan S 



DG Daniel Garcia July 19, 2021 06:13 AM UTC

Hi Vijayarasan Sivanandham,


That's what I needed, thank you!


Regards,



VS Vijayarasan Sivanandham Syncfusion Team July 20, 2021 05:04 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