Solved

load telerik:RadDatePicker

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Export import database 4 45
Server Error 11 48
Split in Javascript 5 31
free scanner TWAIN can be operated with a Web application 9 41
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

23 Experts available now in Live!

Get 1:1 Help Now