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

Basic operations with RadDatePicker

2 Answers 58 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 2
Darren asked on 17 Jul 2012, 01:40 PM
I'm having a heck of a time just finding how to do basic operations. I feel bad about posting something as simple as this, but how does one do simple things like assign a value to this control and retreive the selected value?

Does one use "RadDatePicker1.DateInput.Text", or is there a better property to get at this?

I was using this property and got "Text property cannot be set. String was not recognized as a valid DateTime." and am suspecting perhaps isn't the way.

Thanks in advance!

Edit: I found a property called "selectedDate" and that seems to work. However I'm not sure if this is the recommended practice.

2 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 19 Jul 2012, 11:35 AM
Hi Darren,

You could surely use the SelectedDate property which returns a DateTime? type value. You could also use it to assign a given date to your picker.

I am attaching a sample web site to demonstrate how you could access the picker's value. In addition, please check out the following topics:
 RadCalendar Server-Side Objects
  RadDatePicker Client-Side Object

I hope this will prove helpful.

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Darren
Top achievements
Rank 2
answered on 19 Jul 2012, 11:57 AM
wow. Thank you very much!
Tags
Calendar
Asked by
Darren
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Darren
Top achievements
Rank 2
Share this question
or