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

Clear selected date in code-behind

3 Answers 919 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 23 Mar 2009, 08:33 PM
I am looking for a way to clear a selected date in a RadDatePicker in the code-behind (C#).  It appears that the Clear method is not available.


Thanks for the help!

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Mar 2009, 08:20 AM

Hello Gary,

I tried using Clear() method for clearing the selected dates of RadDatePicker and its working fine for me. Please check the following code.

ASPX:

<telerik:raddatepicker id="RadDatePicker1" runat="server"></telerik:raddatepicker> 

C#:

protected void Button2_Click(object sender, EventArgs e) 
    RadDatePicker1.Clear(); 

I am not sure about the code you tried. Could you paste the your code if it is different from what I tried?

Thanks,

Shinu.

0
Gary
Top achievements
Rank 1
answered on 24 Mar 2009, 02:07 PM
The Clear method is not even an option.  Maybe I'm using an older version?  RadCalendar.Net2.dll version 1.8.2.0.

0
Shinu
Top achievements
Rank 2
answered on 25 Mar 2009, 08:00 AM
Hi Gary,

I am using  RadCalendar.Net2.dll version 2.2.3.0. Try upgrading to the latest version of the RadCalendar.
Here is a KB article which explains how to upgrade RadControls from one version to another.
Updating RadControls for ASP.NET to another version or license

Shinu
Tags
Calendar
Asked by
Gary
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Gary
Top achievements
Rank 1
Share this question
or