Solved

load telerik:RadDatePicker

Posted on 2010-11-09
6
893 Views
Last Modified: 2012-05-10
When I load telerik:RadDatePicker with
            txtIDate.SelectedDate.Value = dsClerk.Tables["Incident"].Rows[0]["dateI"];

I get the error -
Property or indexer 'system.Nullable<System.DateTime>.Value' cannot be assigned to -- it is read only.

I changed a property like EnableTyping="false", it's not working and it is actually not what iI want. Please help.
0
Comment
Question by:minglelinch
6 Comments
 
LVL 6

Expert Comment

by:ajb2222
ID: 34094031
the datacolumn is set to readonly

dsClerk.Tables["Incident"].Columns["dateI"].ReadOnly = false
0
 
LVL 6

Expert Comment

by:ajb2222
ID: 34094159
oops my bad I read the statement backwords.  

the txtIDate.SelectedDate.Value property is read only.

I think you just set the value of the txtIDate.

txtIDate.Value = dsClerk.Tables["Incident"].Rows[0]["dateI"];
0
 
LVL 8

Accepted Solution

by:
TheMozz earned 500 total points
ID: 34094217
I use Telerik controls quite a bit, including date picker controls, you set the SelectedDate property:

txtIDate.SelectedDate = dsClerk.Tables["Incident"].Rows[0]["dateI"];

Here is a line from one of my pages:

this.RadDatePickerDateFrom.SelectedDate = DateTime.Parse("1/1/2009");

0
 
LVL 1

Author Comment

by:minglelinch
ID: 34094405
Thank you. It works.
0
 
LVL 29

Expert Comment

by:Kumaraswamy R
ID: 34280973
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now