Solved

RadDatePicker Value

Posted on 2010-11-20
5
1,471 Views
Last Modified: 2012-05-10

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

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

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.
0
Comment
Question by:minglelinch
5 Comments
 
LVL 12

Expert Comment

by:jagssidurala
ID: 34181876
Try the  DbSelectedDate property to bind the date from the database

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

Also
refer these links

http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/databinding/defaultcs.aspx




0
 
LVL 16

Accepted Solution

by:
BurnieP earned 500 total points
ID: 34183306
I just use SelectedDate property : (Assuming the format is DD/MM/YYYY)

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

0
 
LVL 1

Author Comment

by:minglelinch
ID: 34188036
It works by using DbSelectedDate property.
Using SelectedDate encountered Invalid Case eoor.
Thanks. The problem is resolved.
0
 
LVL 29

Expert Comment

by:Kumaraswamy R
ID: 34387748
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.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question