This question is locked. New answers and comments are not allowed.
Hi, I've a following problem: i'm using custom date picker in cell template. If i open the picker popup and then scroll grid content - the popup will scroll out of bounds of the Grid. I've created a sample to demonstrate this.
MainPage.xaml
<UserControl x:Class="TestSL.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" xmlns:InputControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"> <Grid> <Controls:RadGridView AutoGenerateColumns="False" ItemsSource="{Binding DateSource}" Width="400" Height="200"> <Controls:RadGridView.Columns> <Controls:GridViewDataColumn Header="DatePicker" DataMemberBinding="{Binding}"> <Controls:GridViewDataColumn.CellTemplate> <DataTemplate> <InputControls:RadDatePicker SelectedDate="{Binding}" /> </DataTemplate> </Controls:GridViewDataColumn.CellTemplate> </Controls:GridViewDataColumn> </Controls:RadGridView.Columns> </Controls:RadGridView> </Grid> </UserControl>MainPage.xaml.cs
using System; using System.Collections.Generic; using System.ComponentModel; namespace TestSL { public partial class MainPage : INotifyPropertyChanged { private List<DateTime> _dateSource = new List<DateTime>(); public MainPage() { InitializeComponent(); DataContext = this; var source = new List<DateTime>(); for (var i = 0; i < 20; i++) { source.Add(DateTime.Now.AddDays(i)); } DateSource = source; } public List<DateTime> DateSource { get { return _dateSource; } private set { _dateSource = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs("DateSource")); } } } public event PropertyChangedEventHandler PropertyChanged; } }Here are the steps:
1) Scroll to the bottom.
2) Click picker's button to open popup.
3) Hover any date picker (mouse wheel doesn't scroll without it for some reason).
4) Scroll grid up.