<Window x:Class="datepicker_sample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
		<Grid.Resources>
			<DataTemplate x:Key="DateCellTemplate" >
				<Control>
					<Control.Style>
						<Style TargetType="Control">
							<Setter Property="Template">
								<Setter.Value>
									<ControlTemplate>
										<TextBlock Text="{Binding SomeDate, StringFormat=d}" />
									</ControlTemplate>
								</Setter.Value>
							</Setter>
							<!--<EventSetter Event="PreviewGotKeyboardFocus" Handler="OnPreviewGotKeyboardFocus" />-->
							<!-- (or some similar event) -->

							<!-- Show the editor template when the mouse is over -->
							<Style.Triggers>
								<Trigger Property="IsMouseOver" Value="True">
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate>
												<DatePicker SelectedDate="{Binding SomeDate, Mode=TwoWay}" SelectedDateFormat="Short" />
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Trigger>
							</Style.Triggers>
						</Style>
					</Control.Style>
				</Control>
			</DataTemplate>
			<!-- The Column's CellEditorTemplate -->
			<DataTemplate x:Key="DateCellEditorTemplate">
				<DatePicker SelectedDate="{Binding SomeDate}" SelectedDateFormat="Short"/>
			</DataTemplate>
		</Grid.Resources>
		<telerik:RadGridView x:Name="RadGridView1" AutoGenerateColumns="False">
			<telerik:RadGridView.Columns>
				<telerik:GridViewDataColumn DataMemberBinding="{Binding SomeDate}" 
											CellTemplate="{StaticResource DateCellTemplate}"
											CellEditTemplate="{StaticResource DateCellEditorTemplate}"
											>
				</telerik:GridViewDataColumn>
			</telerik:RadGridView.Columns>
		</telerik:RadGridView>
	</Grid>
</Window>
