This is a migrated thread and some comments may be shown as answers.

RadGridView validation on submit click

0 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
GG
Top achievements
Rank 1
GG asked on 08 Mar 2012, 05:43 PM

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>


Tags
GridView
Asked by
GG
Top achievements
Rank 1
Share this question
or