This question is locked. New answers and comments are not allowed.
Hi Telerik-Team,
I'm trying to open the DatePicker programmatically but it doesn't work. I already saw the other post where you describe to use the IsPopupOpen property (set it to true). However, this does not seem to work or I miss something. What I currently have is:
What's shown when my button is clicked is the DatePicker control TextBox but the popup does not Show up.
Kind Regards,
Stephan Arenswald
I'm trying to open the DatePicker programmatically but it doesn't work. I already saw the other post where you describe to use the IsPopupOpen property (set it to true). However, this does not seem to work or I miss something. What I currently have is:
/// <summary>
/// Handles the click on the date selection button
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private
void
ButtonDateSelector_Click(
object
sender, RoutedEventArgs e)
{
var picker =
new
RadDatePicker();
LayoutRoot.Children.Add(picker);
//picker.Value = _currentDate.ToDateTime();
//picker.ValueChanged += (o, args) => SetPanelFor(new Date((DateTime) args.NewValue));
picker.IsPopupOpen =
true
;
}
What's shown when my button is clicked is the DatePicker control TextBox but the popup does not Show up.
Kind Regards,
Stephan Arenswald