Hi,
I am working on a silverlight page that contains a GridView. The Gridview is populated via a RadDomainDataSource. On the same page I have a validation summary control. When the user enters wrong data into a cell, e.g. types some text into an integer field, the grid marks the erroneous cell in red,displays the error message next to the erroneous cell and adds the error message to the validation summary.
You can see the output in the image firstimage.jpg.
The following code shows the binding of the mentioned cell (GridviewColumn):
<
Controls2:ctlGridViewColumn
UniqueName
=
"Masterprice"
DataMemberBinding="{Binding Masterprice, Converter={StaticResource decimalConverter},
Mode
=
TwoWay
,
NotifyOnValidationError
=
true
,
ValidatesOnExceptions
=
True
}"
TextAlignment
=
"Right"
/>
When the user triggers errors in the grid cells which are generated via custom validation via RIA Services the grid behaves differently.
It marks the whole row red and displays a red exclamation mark at the beginning of the row containing the erroneous cell.
It does not show the error text in a red box like in the first image, you have to move the mouse cursor over the erroneous cell to get a tooltip describing the error.
The ugly thing is that the error message is not added to the validation summary at the bottom of the page so that is not visible.
This behavior is demonstrated in the image secondimage.jpg.
Here is the XAML code for this GridviewColumn:
<
Controls2:ctlGridViewColumn
DataMemberBinding="{Binding PLU,
Mode
=
TwoWay
,
NotifyOnValidationError
=
True
,
ValidatesOnExceptions
=
True
}"/>
Any ideas what I am doing wrong, here?
Janni