The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am using a gridgroupingcontrol. In one of the column, I am using mask. The format I need is ####-####. Here is what I have done, gridColumnDescriptor3.Appearance.AnyRecordFieldCell.CellType = "MaskEdit"; gridColumnDescriptor3.Appearance.AnyRecordFieldCell.MaskEdit.Mask = "####-####"; gridColumnDescriptor3.Appearance.AnyRecordFieldCell.MaskEdit.PaddingCharacter = '0';
The issue I face is, if the column has only 7 digits like 1234567 it pads with a trailing zero, so it becomes 12345670, whereas I want a padding with leading zero like 01234567.
Is there a way to do this. Let me know if you need any more information on this.
ADAdministrator Syncfusion Team November 10, 2006 07:05 AM UTC
Hi Manoj,
This is the default behavior of the MaskEdit cell type, however to get the desired behavior, you can use DrawCellDisplayText event and set the e.DispalyText to some new value to want to display. Here is a code snippet