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

Previous/Next Year Arrows Not Clickable

1 Answer 45 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Mathias
Top achievements
Rank 1
Mathias asked on 02 Apr 2013, 01:24 PM
Hello,

I'm using RadDateTimePicker with the following xaml:

<telerik:RadDateTimePicker
Loaded="dpFrom_Loaded"
Margin="20,0,0,20"
x:Name="dpTo"
DisplayFormat="Short"
DateSelectionMode="Month"
InputMode="DatePicker"
ErrorTooltipContent="Input is not in a valid date format!"
HorizontalAlignment="Left"
FontFamily="Arial"
FontSize="20"
HorizontalContentAlignment="Right"
SelectedValue="{Binding ElementName=lbProjects, Path=SelectedItem.YearTo, Mode=TwoWay, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"
/>

and Custom "DisplayFormat":
private void dpFrom_Loaded(object sender, RoutedEventArgs e)
{
    (sender as RadDateTimePicker).Culture = new System.Globalization.CultureInfo("en-US")
    {
          DateTimeFormat = new System.Globalization.DateTimeFormatInfo
          {
               ShortDatePattern = "MM/yyyy"
          }
    };
}

On clicking the Picking dialogue Previous and Next Year buttons are available but don't seem do anything on clicking them.
See screenshot below.


Also, the Property 
HorizontalContentAlignment="Right"
doesn't affect the style of the DateTimePicker box.
I actually want the characters inside the TextBox-like field to be aligned to the right edge of the box.


Thanks in advance,

Mathias

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 05 Apr 2013, 08:33 AM
Hello Mathias,

We are aware of the described issue and I am happy to say that it is fixed. The fix is available in the new Q1 2013 SP, which you can download from here.
It would be great if you can give it a try and let us know if everything works as expected.

Greetings,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DateTimePicker
Asked by
Mathias
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or