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

month on 2 digit (again -0 )

3 Answers 50 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
FRANCOIS
Top achievements
Rank 1
FRANCOIS asked on 21 Jul 2010, 01:54 PM
Hi,

With the version Q2 2010 - 2010.2.714.35,
When i set a date with 2 digit for the month (such as 01/01/2010), this error occurs :

analyse de "(?<dim.>(?<=\b|\W)dim.(?=\b|\W)|(?<=\b|\W)dimanche(?=\b|\W))|(?<lun.>(?<=\b|\W)lun.(?=\b|\W)|(?<=\b|\W)lundi(?=\b|\W))|(?<mar.>(?<=\b|\W)mar.(?=\b|\W)|(?<=\b|\W)mardi(?=\b|\W))|(?<mer.>(?<=\b|\W)mer.(?=\b|\W)|(?<=\b|\W)mercredi(?=\b|\W))|(?<jeu.>(?<=\b|\W)jeu.(?=\b|\W)|(?<=\b|\W)jeudi(?=\b|\W))|(?<ven.>(?<=\b|\W)ven.(?=\b|\W)|(?<=\b|\W)vendredi(?=\b|\W))|(?<sam.>(?<=\b|\W)sam.(?=\b|\W)|(?<=\b|\W)samedi(?=\b|\W))" - Nom de groupe non valide : les noms de groupes doivent commencer par un caractère alphabétique.

   à System.Text.RegularExpressions.RegexParser.ScanGroupOpen()
   à System.Text.RegularExpressions.RegexParser.ScanRegex()
   à System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op)
   à System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache)
   à System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options)
   à Telerik.Windows.Controls.DayOfWeekParser.TryParse(String value, DateTime& result, DateTime current) dans c:\Builds\WPF_Scrum\Release_WPF_2010_Q2\Sources\Development\Controls\Input\DateTimePicker\Parsers\DayOfWeekParser.cs:ligne 31
   à Telerik.Windows.Controls.CompositeDateTimeParser.TryParse(String value, DateTime& result, DateTime current) dans c:\Builds\WPF_Scrum\Release_WPF_2010_Q2\Sources\Development\Controls\Input\DateTimePicker\Parsers\CompositeDateTimeParser.cs:ligne 67
   à Telerik.Windows.Controls.RadDateTimePicker.OnCurrentDateTimeTextChanged() dans c:\Builds\WPF_Scrum\Release_WPF_2010_Q2\Sources\Development\Controls\Input\DateTimePicker\RadDateTimePicker.cs:ligne 1117
   à Telerik.Windows.Controls.RadDateTimePicker.OnCurrentDateTimeTextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) dans c:\Builds\WPF_Scrum\Release_WPF_2010_Q2\Sources\Development\Controls\Input\DateTimePicker\RadDateTimePicker.cs:ligne 1041
   à System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   à System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   à System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   à System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   à System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)
   à System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   à MS.Internal.Data.PropertyPathWorker.SetValue(Object item, Object value)
   à MS.Internal.Data.ClrBindingWorker.UpdateValue(Object value)
   à System.Windows.Data.BindingExpression.UpdateSource(Object value)
  
With 01/1/2010, it work's fine.
How can i set the month format for allow 2 digit in the month number ?

Thanks in advance

3 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 23 Jul 2010, 11:27 AM
Hi FRANCOIS,

Would you please send us the whole declaration of the culture and the definition of the control in your application that you are using. We did try to reproduce it locally but with no luck.

Kind regards,
Kaloyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
FRANCOIS
Top achievements
Rank 1
answered on 23 Jul 2010, 04:10 PM

Hi Kaloyan,

It' an new empty project.
The C# class doesn't containes any code.

For this test, i don't put any property in the xaml, only the minimal declaration.

Here the full xaml file

<Window x:Class="TestDatePicker.Window1"
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="Window1" Height="300" Width="300">
    <Grid>
        <Telerik:RadDatePicker Width="250" Height="50"></Telerik:RadDatePicker>
    </Grid>
</Window>

I leave all culture parameters by default. My Operating System (Win XP Pro SP 3) is in French, as Visual Studio 2008 SP. (Framework .Net 3.5,SP 1.)

Thanks for your answer.

0
George
Telerik team
answered on 28 Jul 2010, 12:39 PM
Hello FRANCOIS,

Thank you for getting back to us.

We are aware of this problem. It is fixed in our latest internal build. Please try it and let us know if you still have any problems.

I will glad to assist you further. 

Sincerely yours,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DatePicker
Asked by
FRANCOIS
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
FRANCOIS
Top achievements
Rank 1
George
Telerik team
Share this question
or