Hello,
I'm having a problem with the display of error messages on validation on a RadGridView. I use property level validation implementing the IDataErrorInfo interface on my entity classes and the RadGridView correctly reconnizes when there are errors in the entity properties, however it rendered the errors that are present at databinding and the errors that occur due to user editing quite differently.
When the RadGridView is populated with data that already fails the validation rules at the time the data is binded, the grid displays what I consider a nicer looking error template that contains a red triangle in the corner of the cell and highlights the cell in red. However, when the user edits a cell/property value to a value that is invalid according to the property rules they see another style of error notification that is a simple red box around the cell without "niceness" of the other error. See attached files for the comparison.
Is there a way to get both types of errors to use the "nicer" error notification template? I can't seem to find out how to do that.
I'm having a problem with the display of error messages on validation on a RadGridView. I use property level validation implementing the IDataErrorInfo interface on my entity classes and the RadGridView correctly reconnizes when there are errors in the entity properties, however it rendered the errors that are present at databinding and the errors that occur due to user editing quite differently.
When the RadGridView is populated with data that already fails the validation rules at the time the data is binded, the grid displays what I consider a nicer looking error template that contains a red triangle in the corner of the cell and highlights the cell in red. However, when the user edits a cell/property value to a value that is invalid according to the property rules they see another style of error notification that is a simple red box around the cell without "niceness" of the other error. See attached files for the comparison.
Is there a way to get both types of errors to use the "nicer" error notification template? I can't seem to find out how to do that.
#region IDataErrorInfo Members
public
string
Error
{
get
{
if
(TestProperty ==
"J"
)
{
return
"Please enter valid data in this row!"
;
}
return
string
.Empty;
}
}
public
string
this
[
string
columnName]
{
get
{
string
result =
null
;
if
(columnName ==
"TestProperty"
)
{
if
(TestProperty ==
"J"
)
{
return
"Error in something."
;
}
}
return
result;
}
}