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

Read Value from DateTimePicker in CommandBar

1 Answer 101 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Nikita
Top achievements
Rank 2
Nikita asked on 20 Jan 2012, 03:54 PM
Hi,
I would like to read Value from
DateTimePicker that is in CommandBarHostItem in CommandBar.
How can it be done?

I put it in successfully CommandBar like in post:
http://www.telerik.com/community/forums/winforms/commandbar/add-a-datetimepicker-to-a-commandbar.aspx#1952183

Thanks

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Jan 2012, 10:03 AM
Hi Nikita,

You can get the value by accessing RadDateTimePicker.Value property:

DateTime value = radDateTimePicker.Value;

If you have further questions, do not hesitate to contact us.

All the best,
Peter
the Telerik team

SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Tags
CommandBar
Asked by
Nikita
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or