Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Calendar > textbox and calendar

Not answered textbox and calendar

Feed from this thread
  • ronald avatar

    Posted on Feb 22, 2011 (permalink)

    Hi,

    I need to display a calender while the user focus on the textbox. How can I achieve this?

    Reply

  • Posted on Feb 25, 2011 (permalink)

    Hi,


    One suggestion is attaching GotFocus event to RadMaskedTextBox and setting calendar control's Visibility.

    private void DropoffDateTime_GotFocus(object sender, RoutedEventArgs e)
    {
        // Set Calendar Visibility property to "Visible"
    }


    Also check the RadDateTimePicker control and see whether suits your need.


    -Shinu.

    Reply

  • Kaloyan Kaloyan admin's avatar

    Posted on Feb 25, 2011 (permalink)

    Hi ronald,

    You can open the calendar when mouse down event happens. Check the code bellow:
    radDatePicker.AddHandler(UIElement.MouseDownEvent, new MouseButtonEventHandler((radDatePicker_MouseDown)), true);
      
      
    private void radDatePicker_MouseDown(object sender, MouseButtonEventArgs e)
            {
                radDatePicker.IsDropDownOpen = true;
            }


    Regards,
    Kaloyan
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

    Reply

  • Kaloyan Kaloyan admin's avatar

    Posted on Feb 25, 2011 (permalink)

    Hi ronald,

    You can open the calendar when mouse down event appears. Check the code bellow:
    radDatePicker.AddHandler(UIElement.MouseDownEvent, new MouseButtonEventHandler((radDatePicker_MouseDown)), true);
      
      
    private void radDatePicker_MouseDown(object sender, MouseButtonEventArgs e)
            {
                radDatePicker.IsDropDownOpen = true;
            }


    Regards,
    Kaloyan
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Calendar > textbox and calendar
Related resources for "textbox and calendar"

WPF Calendar Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]