Hi ,
I have to prevent entering a non existent date like (11/31/2013..etc) and also needs to consider leap year . I tried with java script function but couldn't achieve it. Can you please help me to get the validation function for the text box txtLaunchDate in java script?
Below is my Radgrid code...
I have to prevent entering a non existent date like (11/31/2013..etc) and also needs to consider leap year . I tried with java script function but couldn't achieve it. Can you please help me to get the validation function for the text box txtLaunchDate in java script?
Below is my Radgrid code...
<
AN:ANGrid
ID
=
"grdEmails"
runat
=
"server"
Width
=
"100%"
AutoGenerateColumns
=
"false"
ShowGroupPanel
=
"false"
ClientSettings-AllowDragToGroup
=
"false"
>
<
MasterTableView
DataKeyNames
=
"ID"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"EmailTypeName"
HeaderText
=
"Email Type"
SortExpression
=
"EmailTypeName"
/>
<
telerik:GridBoundColumn
DataField
=
"RequestSubject"
HeaderText
=
"Subject"
SortExpression
=
"RequestSubject"
/>
<
telerik:GridTemplateColumn
UniqueName
=
"LaunchDate"
HeaderText
=
"Launch Date"
SortExpression
=
"Name"
>
<
ItemTemplate
>
<
asp:TextBox
ID
=
"txtLaunchDate"
runat
=
"server"
ToolTip
=
"Enter email launch date in MM/DD/YYYY format here"
CssClass
=
"controls"
Width
=
"200"
OnTextChanged
=
"PreventNonexistentDate"
></
asp:TextBox
>
<
AN:ANButton
ID
=
"btnStopDelinquentNotices"
runat
=
"server"
Text
=
"Stop Delinquent Notices"
Visible
=
"false"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"LaunchDays"
HeaderText
=
"Number of Days before Contract Expiration"
SortExpression
=
"Name"
Display
=
"false"
>
<
ItemTemplate
>
<
AN:ANNumericTextBox
ID
=
"txtDays"
runat
=
"server"
Type
=
"Number"
Value
=
"0"
></
AN:ANNumericTextBox
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
AN:ANGrid
>
Thanks
Joselina