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

[Solved] RowEditEndedEvent not fired for RadDatePicker?

1 Answer 83 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.
Shipra
Top achievements
Rank 1
Shipra asked on 01 Jun 2009, 04:26 AM

 

 

Hello,

Below is the XAML for my grid. I am using RadDatePicker to show several of the date fields. The issue is that I have added the handler for RowEditEndedEvent. But this event is never fired, after changing the date fields. What's going on here?

Thanks
Shipra

 

StandardVersionJurisdictionRadGridView.AddHandler(

GridViewDataControl.RowEditEndedEvent, new EventHandler<GridViewRowEditEndedEventArgs>(this.StandardVersionJurisdictionRadGridView_RowEditEnded));

 

 

private void StandardVersionJurisdictionRadGridView_RowEditEnded(object sender, Telerik.Windows.Controls.GridViewRowEditEndedEventArgs e)

 

{

 

BaseRecordViewModel vmItem = ((DataRecord)e.Row.Record).Data as BaseRecordViewModel;

 

 

//e.NewData has new info

 

 

 

 

 

}

 


<

 

Grid>

 

 

 

<telerikGrid:RadGridView x:Name="StandardVersionJurisdictionRadGridView" Grid.Column="0" IsReadOnly="False" ColumnsWidthMode="Fill" AutoGenerateColumns="False"

 

 

ItemsSource="{Binding Path=StandardVersionJurisdictionList}"

 

 

ShowGroupPanel="False" IsEnabled="{Binding IsEditable}" IsEnabledChanged="StandardVersionJurisdictionRadGridView_IsEnabledChanged">

 

 

 

<telerikGrid:RadGridView.Columns>

 

 

 

<telerikGrid:GridViewDataColumn HeaderText="Jurisdictions" DataMemberBinding="{Binding Path=Jurisdiction.JurisdictionName, Mode=TwoWay}" IsReadOnly="True">

 

 

 

</telerikGrid:GridViewDataColumn>

 

 

 

<telerikGrid:GridViewDataColumn HeaderText="Effective Date">

 

 

 

<telerikGrid:GridViewDataColumn.CellStyle>

 

 

 

<Style TargetType="GridView:GridViewCell">

 

 

 

<Setter Property="Template">

 

 

 

<Setter.Value>

 

 

 

<ControlTemplate TargetType="GridView:GridViewCell">

 

 

 

<Controls:RadDatePicker SelectedDate="{Binding Path=EffectiveDate, Mode=TwoWay}"/>

 

 

 

</ControlTemplate>

 

 

 

</Setter.Value>

 

 

 

</Setter>

 

 

 

</Style>

 

 

 

</telerikGrid:GridViewDataColumn.CellStyle>

 

 

 

</telerikGrid:GridViewDataColumn>

 

 

 

<telerikGrid:GridViewDataColumn HeaderText="Enforcement Date">

 

 

 

<telerikGrid:GridViewDataColumn.CellStyle>

 

 

 

<Style TargetType="GridView:GridViewCell">

 

 

 

<Setter Property="Template">

 

 

 

<Setter.Value>

 

 

 

<ControlTemplate TargetType="GridView:GridViewCell">

 

 

 

<Controls:RadDatePicker SelectedDate="{Binding Path=EnforcementDate, Mode=TwoWay}"/>

 

 

 

</ControlTemplate>

 

 

 

</Setter.Value>

 

 

 

</Setter>

 

 

 

</Style>

 

 

 

</telerikGrid:GridViewDataColumn.CellStyle>

 

 

 

</telerikGrid:GridViewDataColumn>

 

 

 

<telerikGrid:GridViewDataColumn HeaderText="Inactive Date">

 

 

 

<telerikGrid:GridViewDataColumn.CellStyle>

 

 

 

<Style TargetType="GridView:GridViewCell">

 

 

 

<Setter Property="Template">

 

 

 

<Setter.Value>

 

 

 

<ControlTemplate TargetType="GridView:GridViewCell">

 

 

 

<Controls:RadDatePicker SelectedDate="{Binding Path=InactiveDate, Mode=TwoWay}"/>

 

 

 

</ControlTemplate>

 

 

 

</Setter.Value>

 

 

 

</Setter>

 

 

 

</Style>

 

 

 

</telerikGrid:GridViewDataColumn.CellStyle>

 

 

 

</telerikGrid:GridViewDataColumn>

 

 

 

</telerikGrid:RadGridView.Columns>

 

 

 

</telerikGrid:RadGridView>

 

 

 

</Grid>

 

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 02 Jun 2009, 08:45 AM
Hello Shipra,

As a suggestion you can use the RadGridView.CellEditEnded event instead of the RadGridView.RowEditEnded or change the RadGridView.ValidationMode property to ValidationMode.Row (ValidationMode.Cell is the default mode). For additional info you can take a look at this online help topic.

Greetings,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Shipra
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or