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

User typed in text/value

1 Answer 44 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Sunghwan
Top achievements
Rank 1
Sunghwan asked on 15 Jan 2009, 07:04 PM
Is there a way to get text/value that user manually typed into DateInput box when the value is invalid date? Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 16 Jan 2009, 06:52 AM
Hi Sunghwan,

It is possible to get the typed date which is invalid, inside the OnError event of DateInput. Try the following code.

JavaScript:
<script type="text/javascript"
function OnError(sender, args) 
    alert("Invalid Date   :" + args.get_inputText()); 
</script> 

ASPX:
<telerik:RadDateInput ID="RadDateInput1" Runat="server"
    <ClientEvents OnError="OnError"/> 
</telerik:RadDateInput> 

Thanks,
Shinu.



Tags
Calendar
Asked by
Sunghwan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or