Hi Mario,
Thank you for contacting Syncfusion support.
Based on provided information, your requirement of “Mask the Credit card number using DataForm” can be achieved by using MaskedEditText editor in DataForm.
Please find the code snippet for the same,
[C#]
dataForm.AutoGeneratingDataFormItem += DataForm_AutoGeneratingDataFormItem;
private void DataForm_AutoGeneratingDataFormItem(object sender, AutoGeneratingDataFormItemEventArgs e)
{
if (e.DataFormItem.Name.Equals("CardNumber"))
{
var maskedItem = e.DataFormItem asDataFormMaskedEditTextItem;
maskedItem.Mask = "0000-0000-0000-0000";
maskedItem.PromptChar = 'X';
maskedItem.KeyBoard = Keyboard.Numeric;
}
} |
We have prepared the simple sample for the same. Kindly, check the sample from following link.
Please refer our User Guide documentation for more details,
We hope that this helps you. Kindly, revert us if you have any concern.
Regards,
Subburaj Pandian V