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
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.
Deyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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}" />
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 >>
Wondering if you found a solution for the mentioned issue, if yes please let me know. Thanks in advance.
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.