We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Get rid of Thousand Seperator in

I have a numeric editor in my SfDataForm.

I would like to remove the thousand seperator since I'm using it as an editor to enter a year 

1 Reply

SP Subburaj Pandian Veluchamy Syncfusion Team July 31, 2019 12:01 PM UTC

Hi Mario, 
  
Thank you for contacting Syncfusion support. 
  
We have analyzed your requirement “Disable thousand separators in numeric text field of DataForm”. DataFormNumericItem has EnableGroupSeparator property to enable and disable thousand separators by setting EnableGroupSeparator to false you can achieve your requirement.  
 
Kindly refer our UG documentation to know more about EmableGroupSeparator of DataFormNumericItem. 
  
  
Code Snippet: 
private void DataForm_AutoGeneratingDataFormItem(object sender, AutoGeneratingDataFormItemEventArgs e) 
    if(e.DataFormItem != null
    { 
         if(e.DataFormItem.Name == "BirthYear"
         { 
             (e.DataFormItem as DataFormNumericItem).EnableGroupSeparator = false
         } 
    } 
  
We have prepared a sample for the same, 
 
Sample link: DataForm 
  
We hope this helps. Kindly revert us if you have any concern. 
 
Regards,
Subburaj Pandian V     


Loader.
Live Chat Icon For mobile
Up arrow icon