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

[Solved] Binding to DatePicker and TimePicker

4 Answers 166 Views
DatePicker for XAML
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 30 Aug 2012, 01:00 AM
Hi,



I develop Windows 8, Metro, C#, WinRT application.



I would like to bind DatePicker and TimePicker controls to DateTime type of variables?



I am looking for an example to do it.



Thanks,

EitanB

4 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 03 Sep 2012, 03:01 PM
Hi Eitan,

Thank you for your interest in our Windows 8 toolkit.

You can have a look at how the Date/TimePicker components work in our example within the Demo Application (or QSF how we call it). A shortcut to the QSF solution is placed on your Desktop together when you install RadControls for Metro.

You can take a look at this blog post for more information about the QSF:

Using RadControls for Metro QSF

I hope this information is useful. Let me know if I can assist you further.

Greetings,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Eitan
Top achievements
Rank 1
answered on 04 Sep 2012, 09:47 PM
Hi,

Got the binding one side, but when I define the control like this (Mode=TwoWay):

<telerik:RadDatePicker

  x:Name="EndDate"

  Width="400"

  FontSize="20"

  DisplayValueFormat="dddd, MMMM dd, yyyy"

  Value="{Binding EndDate, Converter={StaticResource nullableConverter}, Mode=TwoWay}"

  FontFamily="Global User Interface"

  FontWeight="Bold"

  VerticalAlignment
="Center"/>



with Mode=TwoWay the application crashes.

Thanks,

EitanB







0
Mark
Top achievements
Rank 1
answered on 06 Sep 2012, 04:08 PM
Hi



I am having the same problem, when using oneway binding it is fine however when you change it to twoway binding the app crashes and the error seems to be in the nullableConverter according to the stack trace.



thanks



Mark...
0
Georgi
Telerik team
answered on 10 Sep 2012, 11:42 AM
Hello guys,

Thank you for contacting us.

This is a known issue with our Date/Time picker components and we have already fixed it in our development version. We are currently preparing an update release of our tools, which will be available within several days. The release will contain this as well as several other bugs fixed, so stay tuned :)

I hope this information is useful. Let me know if I can assist you in some other way.

Kind regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DatePicker for XAML
Asked by
Eitan
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Eitan
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Share this question
or