RadDatePicker throws Exception

4 posts, 1 answers
  1. Ivan
    Ivan avatar
    9 posts
    Member since:
    Dec 2010

    Posted 21 Feb 2013 Link to this post

    Hi.

    I've been using Telerik controls for a while, and with the latest release, RadDatePicker throws a NullReferenceException after opening the dropdown of the control, configured with DateSelectionMode= "Month".

    This happens on  Telerik RadControls for WPF 2013.1.220.40

    Could you fix this problem?

    XAML Code:

    <telerik:RadDatePicker Name="MonthRDP" Grid.Column="1" DateSelectionMode="Month"  />

    StackTrace: 

    en Telerik.Windows.Controls.RadCalendar.PopulateMonths() en c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\Calendar\RadCalendar.cs:línea 3644
    en Telerik.Windows.Controls.RadCalendar.UpdateCalendarViews() en c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\Calendar\RadCalendar.cs:línea 2723
    en Telerik.Windows.Controls.RadDateTimePicker.OnIsDropDownOpenChanged() en c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\DateTimePicker\RadDateTimePicker.cs:línea 1297
    en Telerik.Windows.Controls.RadDateTimePicker.OnIsDropDownOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) en c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\DateTimePicker\RadDateTimePicker.cs:línea 1221
    en System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
    en System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
    en System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
    en System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
    en System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
    en MS.Internal.Data.PropertyPathWorker.SetValue(Object item, Object value)
    en MS.Internal.Data.ClrBindingWorker.UpdateValue(Object value)
    en System.Windows.Data.BindingExpression.UpdateSource(Object value)

    Thanks


  2. Szymon
    Szymon avatar
    7 posts
    Member since:
    Jun 2012

    Posted 23 Feb 2013 Link to this post

    I have exactly the same problem, but with DateSelectionMode="Year".

    XAML Code:
    <telerik:RadDatePicker x:Name="YearDatePicker"
                    DateSelectionMode="Year"
                    DisplayFormat="Short"
                    InputMode="DatePicker"
                    SelectedDate="{Binding StartDate, Mode=TwoWay}"
                    Style="{DynamicResource datePickerStyle}" />

    NullReferenceException Stack Trace:
    w Telerik.Windows.Controls.RadCalendar.PopulateYears() w c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\Calendar\RadCalendar.cs:wiersz 3695
    w Telerik.Windows.Controls.RadCalendar.UpdateCalendarViews() w c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\Calendar\RadCalendar.cs:wiersz 2726
    w Telerik.Windows.Controls.RadDateTimePicker.OnIsDropDownOpenChanged() w c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\DateTimePicker\RadDateTimePicker.cs:wiersz 1297
    w Telerik.Windows.Controls.RadDateTimePicker.OnIsDropDownOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) w c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\DateTimePicker\RadDateTimePicker.cs:wiersz 1221
    w System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

  3. UI for WPF is Visual Studio 2017 Ready
  4. Answer
    Georgi
    Admin
    Georgi avatar
    347 posts

    Posted 26 Feb 2013 Link to this post

    Hello guys,

    We are aware of this issue and we have just fixed it. As you can see in this release note the fix is available in our Latest Internal Build.
    It would be great if you can give it a try and let us know if everything works as expected.

    Regards,
    Georgi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Szymon
    Szymon avatar
    7 posts
    Member since:
    Jun 2012

    Posted 26 Feb 2013 Link to this post

    Hello Georgi,

    After downloading last internal build and updating references everything looks good.
    Thanks for fast fix. Now I can wait for update in official release.

    Szymon
Back to Top