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.
I always get back a value of nothing and cannot figure out why.
Thanks.
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.