load telerik:RadDatePicker

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.
Who is Participating?
TheMozzConnect With a Mentor Commented:
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");

the datacolumn is set to readonly

dsClerk.Tables["Incident"].Columns["dateI"].ReadOnly = false
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"];
minglelinchAuthor Commented:
Thank you. It works.
Kumaraswamy RCommented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.