Solved

load telerik:RadDatePicker

Posted on 2010-11-09
6
897 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

823 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