I have a RadDateTimePicker in a grid, which is in edit mode. In a certain scenario, I want to clear the value that was selected in the RadDateTimePicker via javascript.
However, when I do a "find", or a "get", or "document.getElementById", I cannot find my object. Any ideas?
I have tried with ClientIdMode not set and with it =AutoId
var myElement = $find("<%=Time.ClientID %>"); --object reference not set to an instance of an object
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
table
width
=
"100%"
OnKeyPress
=
"return disableEnterKey(event)"
>
<
tr
>
<
td
>
<
div
class
=
"myClass1"
>
<
span
class
=
"label"
id
=
"Span1"
>
junk
</
span
>
<
span
class
=
"myClass2 id="
Span2">
<
telerik:RadDateTimePicker
ID
=
"Time"
runat
=
"server"
/>
</
span
>