• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1510
  • Last Modified:

RadDatePicker Value

I have the following piece of code working -      
            <asp:Label ID="Label5" runat="server" Text='<%# Bind("payDate") %>'></asp:Label>  

Now I want to change the above label to a RadDatePicker. I used the following code -
         <telerik:RadDatePicker ID="RadDate" runat="server" CssClass="Textbox"
                     Calendar-SelectedDate='<%# Bind("payDate") %>' DateInput-ReadOnly="true">

The above code is not working. What would the correct way to chnage it?

Another thing -
I went through all the properties of telerik:RadDatePicker, trying to find the one to set the datebox with a specific date, but I did not find it.

Please help. Thanks.
1 Solution
Try the  DbSelectedDate property to bind the date from the database

DbSelectedDate='<%# Bind("StartDate") %>'

refer these links


I just use SelectedDate property : (Assuming the format is DD/MM/YYYY)

         <telerik:RadDatePicker ID="RadDate" runat="server" CssClass="Textbox" SelectedDate='<%# Bind("payDate") %>' DateInput-ReadOnly="true">

minglelinchAuthor Commented:
It works by using DbSelectedDate property.
Using SelectedDate encountered Invalid Case eoor.
Thanks. The problem is resolved.
Kumaraswamy RCommented:
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now