Hi Ulisses,
Thank you for contacting Syncfusion Support
To restrict the ButtonEdit to allow only numbers, you can handle the KeyPress event of TextBox element of ButtonEdit as shows in the following code example.
|
//Invoke the KeyPress event
this.buttonEdit1.TextBox.KeyPress += TextBox_KeyPress;
private void TextBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsDigit(e.KeyChar))
{
e.Handled = false;
}
else
{
e.Handled = true;
MessageBox.Show("Allows Only Numbers ");
}
} |
Please try this solution and let us know if it is helpful
Regards,
Vijayalakshmi V.R.