Feb 25, 2013, 8:28 AM
PropertyGrid Validation issue
Hi,
I need to validate propertyGrid value before edit.I am adding property to propertyGrid on code behind.
I need to validate propertyGrid value before edit.I am adding property to propertyGrid on code behind.
Field editor = getEditor(propertyInfo.Name);
propertyGrid.AddProperty(new PropertyGridParameter
{
Name = propertyInfo.Name,
Value = getValue(control,propertyInfo),
DisplayName = atrr.Caption,
Editor = {
editor
}
});
And on textField editor which is added in PropertyGrid im calling js function.I want to validate editor value before blur event is called.How can i achive this?TextField tf = new TextField();
tf.Listeners.Blur.Handler = "propertyValueChanged(this,'"+ propertyName+ "')";
return tf;
Thank You