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

Failed to assign to property 'Telerik.Windows.Controls.RadCalendar.DisplayDateEnd'

3 Answers 127 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
ofir
Top achievements
Rank 1
ofir asked on 15 Jul 2010, 08:55 PM
dpBirthDay = new RadDateTimePicker
                {
                    FlowDirection = FlowDirection.RightToLeft,
                    Width = 140,
                    DisplayDate = new DateTime(1980, 6, 15),
                    DateTimeWatermarkContent = "בחר תאריך =>",
                    InputMode = InputMode.DatePicker,
                };
            DateTime? dateTimeEnd = new DateTime(1992, 1, 1);
            dpBirthDay.DisplayDateEnd = dateTimeEnd;

this code throw the following error:

  Unhandled Error in Silverlight Application
Code: 2531   
Category: ParserError      
Message: Failed to assign to property 'Telerik.Windows.Controls.RadCalendar.DisplayDateEnd'.    
File:     
Line: 1061    
Position: 60    
  RichrachTestPage.aspx, line 59 character 13


any solution?

thanks

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 16 Jul 2010, 04:06 PM
Hello ofir,

Thank you for contacting us.

I tested the code you gave us and it seems everything works fine. If you could give us a running sample it would be very helpful.

I will be 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
0
ofir
Top achievements
Rank 1
answered on 17 Jul 2010, 08:56 PM
i donot see a way to attach here an entire solution so i'll give you the MainPage.xaml and MainPage.xaml.cs
<UserControl x:Class="RadControlsSilverlightApp2.MainPage"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="640"
        d:DesignHeight="480">
    <Grid x:Name="MainGrid" FlowDirection="RightToLeft">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid x:Name="grdRemarks" Grid.Row="1">
            <!--RowDefinitions are added in code behind by demand-->
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="40" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <!--Remarks(Tips&Infos)-->
        </Grid>
        <Grid x:Name="grdInputUI" Grid.Row="2" Margin="0,0,0,2">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Border x:Name="brdInputUIFrame" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" BorderBrush="Red"
                    Margin="20,10,2,0" VerticalAlignment="Center">
                <!--InputUI-->
            </Border>
        </Grid>
    </Grid>
</UserControl>


and


using System;
using System.Windows;
using System.Windows.Controls;
using Telerik.Windows.Controls;
  
namespace RadControlsSilverlightApp2
{
    public partial class MainPage : UserControl
    {
        private RadDateTimePicker dpBirthDay;
  
        private StackPanel spAgeUI = new StackPanel();
  
        private TextBlock txbAge;
  
        private TextBlock txbAgeLabel = new TextBlock();
  
        public MainPage()
        {
            InitializeComponent();
            BuildInputUI();
        }
  
        protected void BuildInputUI()
        {
            txbAgeLabel.Text = "גיל :  ";
            txbAge = new TextBlock
                {
                    FlowDirection = FlowDirection.LeftToRight
                };
            spAgeUI.Orientation = Orientation.Horizontal;
            spAgeUI.Margin = new Thickness
                {
                    Left = 20,
                    Top = 10,
                    Bottom = 10
                };
            spAgeUI.Children.Add(txbAgeLabel);
            spAgeUI.Children.Add(txbAge);
            grdInputUI.PlaceInGrid(spAgeUI, grdInputUI.Children.Count, 0);
            dpBirthDay = new RadDateTimePicker
                {
                    FlowDirection = FlowDirection.RightToLeft,
                    Width = 140,
                    DisplayDate = new DateTime(1980, 6, 15),
                    DateTimeWatermarkContent = "בחר תאריך =>",
                    InputMode = InputMode.DatePicker,
                };
            DateTime? dateTimeEnd = new DateTime(1992, 1, 1);
            dpBirthDay.DisplayDateEnd = dateTimeEnd;
            brdInputUIFrame.Child = dpBirthDay;
        }
    }
}
0
George
Telerik team
answered on 20 Jul 2010, 07:42 AM
Hi ofir,

Thank you for contacting us.

We investigated and found the problem. Thank you for reporting this bug, it helps us in improving our products. I am glad to give you points for reporting this abnormal behavior of our RadDateTimePicker control. We will fix this bug in one of our future releases. You can track this progress in our Public Issue Tracking System (PITS) with Issue ID = 2717.

I hope this information helps. I will be glad to assist you further.

Best wishes,
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
DateTimePicker
Asked by
ofir
Top achievements
Rank 1
Answers by
George
Telerik team
ofir
Top achievements
Rank 1
Share this question
or