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.
ASArun Srinivasan Syncfusion Team October 9, 2003 05:06 PM UTC
Hi Peter,
We were unable to reproduce the behaviour you state above. Can you post information on how we can reproduce what you are encountering so that we can take a look
Regards,
Arun
PEPeterOctober 10, 2003 02:40 PM UTC
private void comboBoxExt1_Validating(object sender, System.ComponentModel.CancelEventArgs e)
{
// Logic code here
// This code will get executed on the selection changed event if the user selected an item and during the validating event
}
private void comboBoxExt1_SelectionChangeCommitted(object sender, System.EventArgs e)
{
// check: is custom
if (listControl1.SelectedIndex == -1)
return;
// validate
this.comboBoxExt1_Validating(sender, null);
}
ASArun Srinivasan Syncfusion Team October 10, 2003 07:49 PM UTC
Hi Peter,
Thanks for the update. Validating will be called whenever the control loses focus and I guess that is what you are referring to when you say that it is called twice as it is called in your SelectionChangeCommitted event.
You could overcome this by setting a boolean flag and toggle it's value in your validation logic of both SelectionChangeCommitted and Validating events to ensure that it is called only once.
Regards,
Arun