RadGridView validation on submit click

1 posts, 0 answers
  1. GG
    GG avatar
    5 posts
    Member since:
    Feb 2012

    Posted 08 Mar 2012 Link to this post

    Hello,

    I have a DomainDataSource which query my database and I have a RadGridView with ItemsSource bind to the DomainDataSource.

    The default behavior for RadGridView validation is on LostFocus each time I edit a cell and then lost focus of the cell the validation is running.

    In my case I would disable this behavior and validate only at the SubmitChanges event?

    But I don't succeed.

    I have try to set UpdateSourceTrigger=Explicit on my RadGridView but the validation process continue to execute on LostFocus.

    Any ideas? Thx

    My code is the following:

    <telerik:RadDomainDataSource
      Name="ddsPeople"
      x:Key="resPeople"
      QueryName="GetPeopleQuery"
      LoadingData="ddsPeople_LoadingData" />
    <telerik:RadGridView
      Name="gdPeople"
      AutoGenerateColumns="True"
      Grid.Row="0" Grid.Column="0"
      ValidatesOnDataErrors="None"  
      ItemsSource="{Binding DataView, Source={StaticResource resPeople}}"
      RowIndicatorVisibility="Collapsed"
      IsBusy="{Binding IsBusy, ElementName=ddsPeople}">
                    <telerik:GridViewComboBoxColumn Header="Country"
                                DataMemberBinding="{Binding Country_Id}"
                                DisplayMemberPath="Country_Name"
                                SelectedValueMemberPath="Country_Id"
                                ItemsSource="{Binding DataView, Source={StaticResource resCountry}}" />
                    <telerik:GridViewComboBoxColumn Header="Order"
                                DataMemberBinding="{Binding Order_Id}"
                                DisplayMemberPath="Order_Name"
                                SelectedValueMemberPath="Order_Id"
                                ItemsSource="{Binding DataView, Source={StaticResource resOrder}}" />
    </telerik:RadGridView>


Back to Top