Hi
I am using the following to pass some values to a javascript function on the RadTimepickers onkeypress event. But unfortunatly the object.Value seems to be undefined.
ASPX
This is inside a Grids footer.
<FooterTemplate>
<telerik:RadTimePicker ID="footerRadInsStartTime" runat="server" Onkeypress="return validatenumber(event, this, 'int');">
</telerik:RadTimePicker>
</FooterTemplate>
function validatenumber(event, obj, type)
{
var code = (event.which) ? event.which : event.keyCode;
var character = String.fromCharCode(code);
var afterDecimal = obj.value.indexOf('.'); // This is where it has the null value
blah blah
...
....
}
obj.value is always null. Any help to overcome. I cannot use $find because the control is inside the Grid.