Hi,
In our project we are using DataAnnotations to do the validations. attributes are propagating to client, but validation is not being fired in grid.
In this case, Field entity contains FieldSize entity.
Below is the generated code: for FieldSize entitiy
/// <summary>
/// Gets or sets the 'Size' value.
/// </summary>
[DataMember()]
[Required(ErrorMessage="Size is mandatory")]
public double Size
{
.....
XAML code is:
<avcu:AVGrid Name="dataGrid1" ItemsSource="{Binding Path=Field.FieldSizes,Mode=TwoWay}">
<avcu:AVGrid.Columns>
<avcu:AVDataGridColumn Header="Size" Width="Auto">
<avcu:AVDataGridColumn.CellTemplate>
<DataTemplate>
<avcu:AVTextBox Text="{Binding Path=Size, Mode=TwoWay}" Width="30"/>
</DataTemplate>
</avcu:AVDataGridColumn.CellTemplate>
</avcu:AVDataGridColumn>
</avcu:AVGrid.Columns>
</avcu:AVGrid>
Validations is not happening! Could you please help me to solve this. could you share me a sample application with the above requirements.
In our project we are using DataAnnotations to do the validations. attributes are propagating to client, but validation is not being fired in grid.
In this case, Field entity contains FieldSize entity.
Below is the generated code: for FieldSize entitiy
/// <summary>
/// Gets or sets the 'Size' value.
/// </summary>
[DataMember()]
[Required(ErrorMessage="Size is mandatory")]
public double Size
{
.....
XAML code is:
<avcu:AVGrid Name="dataGrid1" ItemsSource="{Binding Path=Field.FieldSizes,Mode=TwoWay}">
<avcu:AVGrid.Columns>
<avcu:AVDataGridColumn Header="Size" Width="Auto">
<avcu:AVDataGridColumn.CellTemplate>
<DataTemplate>
<avcu:AVTextBox Text="{Binding Path=Size, Mode=TwoWay}" Width="30"/>
</DataTemplate>
</avcu:AVDataGridColumn.CellTemplate>
</avcu:AVDataGridColumn>
</avcu:AVGrid.Columns>
</avcu:AVGrid>
Validations is not happening! Could you please help me to solve this. could you share me a sample application with the above requirements.