Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

RadDatePicker Value

Posted on 2010-11-20
5
1,467 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
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 …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

840 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