Basic operations with RadDatePicker

3 posts, 0 answers
  1. Darren
    Darren avatar
    14 posts
    Member since:
    Sep 2012

    Posted 17 Jul 2012 Link to this post

    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. Eyup
    Eyup avatar
    2941 posts

    Posted 19 Jul 2012 Link to this post

    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,
    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.
  3. DevCraft R3 2016 release webinar banner
  4. Darren
    Darren avatar
    14 posts
    Member since:
    Sep 2012

    Posted 19 Jul 2012 Link to this post

    wow. Thank you very much!
Back to Top