Hi,
I'm currently trying to implementing a rad grid with in line batch editing.
I have a GridDateTimeColumn with an associated RequiredFieldValidator
If I leave the datepicker empty and select to add a new row to the table the validator is not firing as expected. Therefore I am incorrectly able to add multiple rows with no date entered
Note that required field validators on other columns are firing correctly in this instance. it only appears to be an issue with the date picker
If however I enter a date in the date picker, and then remove it, the validator is firing and I cannot add a new row (as expected)
Further to this if I re-enter the date, select to add a new row and then try to add an additional row without entering a date then the validator is firing in this scenario
Have you any advice on how the required field validator should be implemented to fire when adding a new row??
below is my column definition
I'm currently trying to implementing a rad grid with in line batch editing.
I have a GridDateTimeColumn with an associated RequiredFieldValidator
If I leave the datepicker empty and select to add a new row to the table the validator is not firing as expected. Therefore I am incorrectly able to add multiple rows with no date entered
Note that required field validators on other columns are firing correctly in this instance. it only appears to be an issue with the date picker
If however I enter a date in the date picker, and then remove it, the validator is firing and I cannot add a new row (as expected)
Further to this if I re-enter the date, select to add a new row and then try to add an additional row without entering a date then the validator is firing in this scenario
Have you any advice on how the required field validator should be implemented to fire when adding a new row??
below is my column definition
<
telerik:GridDateTimeColumn
DataField
=
"Date"
HeaderStyle-Width
=
"135px"
HeaderText
=
"Date"
ColumnEditorID
=
"dateEditor"
SortExpression
=
"Date"
UniqueName
=
"Date"
PickerType
=
"DatePicker"
>
<
ColumnValidationSettings
EnableRequiredFieldValidation
=
"True"
>
<
RequiredFieldValidator
ForeColor
=
"Red"
ErrorMessage
=
"This field is required"
ID
=
"reqDateVal"
></
RequiredFieldValidator
>
</
ColumnValidationSettings
>
</
telerik:GridDateTimeColumn
>