I'm seeing some weird behavior with a GridViewComboBoxColumn when validation fails. When I put a null value in the column, I get hints (red ! icon, red box around row) but nothing in the cell itself as I do in other grids. The property bound to the column has a [Required] attribute on it. Am I doing something wrong?
Thanks!
<telerik:RadGridView x:Name="StatusGrid" ... ItemsSource="{Binding Path=Retailer.Statuses}" prismCommands:RowEditEndedCommand.Command="{Binding ValidateStatus}" SelectionMode="Extended" ShowGroupPanel="False" ValidatesOnDataErrors="InViewMode"> <telerik:RadGridView.Columns> <telerik:GridViewComboBoxColumn Width="375" DataMemberBinding="{Binding SelectedType, Mode=TwoWay}" DisplayMemberPath="Description" Header="Status" HeaderCellStyle="{StaticResource RequiredGridViewHeaderCellStyle}" IsReadOnlyBinding="{Binding IsExisting}" ItemsSourceBinding="{Binding Source={StaticResource ViewDataContext}, Path=DataSource.StatusTypes}" /> <telerik:GridViewDataColumn Width="100" DataFormatString="{}{0:MM/dd/yyyy}" DataMemberBinding="{Binding EffectiveDate, Mode=TwoWay}" Header="Effective Date" HeaderCellStyle="{StaticResource RequiredGridViewHeaderCellStyle}" IsReadOnlyBinding="{Binding IsExisting}" /> </telerik:RadGridView.Columns> </telerik:RadGridView>
Thanks!
<telerik:RadGridView x:Name="StatusGrid" ... ItemsSource="{Binding Path=Retailer.Statuses}" prismCommands:RowEditEndedCommand.Command="{Binding ValidateStatus}" SelectionMode="Extended" ShowGroupPanel="False" ValidatesOnDataErrors="InViewMode"> <telerik:RadGridView.Columns> <telerik:GridViewComboBoxColumn Width="375" DataMemberBinding="{Binding SelectedType, Mode=TwoWay}" DisplayMemberPath="Description" Header="Status" HeaderCellStyle="{StaticResource RequiredGridViewHeaderCellStyle}" IsReadOnlyBinding="{Binding IsExisting}" ItemsSourceBinding="{Binding Source={StaticResource ViewDataContext}, Path=DataSource.StatusTypes}" /> <telerik:GridViewDataColumn Width="100" DataFormatString="{}{0:MM/dd/yyyy}" DataMemberBinding="{Binding EffectiveDate, Mode=TwoWay}" Header="Effective Date" HeaderCellStyle="{StaticResource RequiredGridViewHeaderCellStyle}" IsReadOnlyBinding="{Binding IsExisting}" /> </telerik:RadGridView.Columns> </telerik:RadGridView>