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

RadDatePicker

5 Answers 85 Views
DatePicker and DateSelector
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eitan
Top achievements
Rank 1
Eitan asked on 03 Jul 2012, 10:38 AM
Hi,

I am trying to bind a RadDatePicker to a DateTime variables.
<telerikInput:RadDatePicker x:Name="DOB"
       Width="165"                                                             
Margin
="0"                                                             
Value
="{Binding DOB, Mode=TwoWay}"                                                             
VerticalAlignment
="Center" />

I am not getting the expected result.

What is the right way to bind my DOB (DateTime) variable to the RadDatePicker.

Thanks,
Eitan



5 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 03 Jul 2012, 10:43 AM
Hi Eitan,

Thanks for writing.

That is the correct way to bind the Value property of RadDatePicker. If you are getting errors or undesired behavior, please be more specific so that we can make sure that we understand the scenario and see how we can help.

It will be great if you can send us some source code or a demo project that will help us reproduce the undesired behavior and thus be able to investigate it.

Note that in order to be able to attach a project you will have to open a new support ticket.

Thanks for your time. 

All the best,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Eitan
Top achievements
Rank 1
answered on 03 Jul 2012, 04:52 PM
Hi,

My variables "DOB" is initialized at the constructor level to DateTime.Now.
When the page (a Pivot page) is laoaded and shown, the RadDatePicker shows 1/1/0001 instead of the 3/7/2012.

Can it be as a result of the fact that this a Pivot page?

Eitan Barazani

<telerikInput:RadDatePicker x:Name="DOB"
    Width="165"
    
Margin="0"
    
VerticalAlignment="Center"
    
Value="{Binding DOB, Mode=TwoWay}" />


0
Deyan
Telerik team
answered on 05 Jul 2012, 11:38 AM
Hello Eitan,

Thanks for writing back and for the additional details.

We tried to reproduce the issue but unfortunately to no avail. We therefore would like to kindly ask you to prepare a sample project and send it to us for further investigation.

Please note that you will have to open a new support ticket in order to be able to attach your project.

All the best,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Vijayan
Top achievements
Rank 1
answered on 15 Oct 2012, 02:38 PM
Hi,
Wondering if you found a solution for the mentioned issue, if yes please let me know. Thanks in advance.
0
Deyan
Telerik team
answered on 16 Oct 2012, 06:25 AM
Hi Vijayan,

Thanks for writing.

We haven't been able to reproduce it yet. If you experience this issue, we will be grateful if you manage to help us resolve it by sending us a sample that we can use to reproduce it on our side.

You will have to open a new support ticket to be able to attach files for security reasons.

All the best,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DatePicker and DateSelector
Asked by
Eitan
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Eitan
Top achievements
Rank 1
Vijayan
Top achievements
Rank 1
Share this question
or