This is a migrated thread and some comments may be shown as answers.

[Solved] Unable to get value of datepicker

1 Answer 217 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
DogEars
Top achievements
Rank 2
DogEars asked on 02 Mar 2008, 08:42 PM
I've got a datepicker inside a templatecolumn of a RadGrid. I'm specifically trying to use it in the edittemplatecolumn and I can't seem to get the value back from the data that is input.

 If (TypeOf e.Item Is GridEditableItem) AndAlso (e.Item.IsInEditMode) Then 
            Dim edititem As GridEditableItem = CType(e.Item, GridEditableItem) 
 
            Dim datepicker As RadDatePicker = CType(edititem("SpiralChngDelDate").FindControl("Picker1"), RadDatePicker) 
            Dim newdate As Object = datepicker.DbSelectedDate 
 
            SDS_Report.UpdateParameters.Add("SpiralChngDelDate", TypeCode.DateTime, "") 
 
            SDS_Report.UpdateParameters("SpiralChngDelDate").DefaultValue = newdate 
 
 
            SDS_Report.Update() 

I always get back a value of nothing and cannot figure out why.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 04 Mar 2008, 08:29 AM
Hi DogEars,

We tried to reproduce the problem you reported, but without much success. Please refer to the attached project as part of our local tests. It worked as expected at our side.
What is different in your case? What are we missing?

Kind regards,
Plamen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Calendar
Asked by
DogEars
Top achievements
Rank 2
Answers by
Missing User
Share this question
or