All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
protected
void
RadGrid1_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
GridEditableItem item = e.Item
as
GridEditableItem;
RadDatePicker start = (RadDatePicker)item[
"StartDate"
].Controls[0];
RadDatePicker end = (RadDatePicker)item[
"EndDate"
TableCell cell = (TableCell)start.Parent;
CompareValidator val =
new
CompareValidator();
val.ControlToCompare = start.ID;
val.ControlToValidate = end.ID;
val.Operator = ValidationCompareOperator.Equal;
// Give your required Operator
val.ErrorMessage =
"Error message"
;
val.ForeColor = Color.Red;
cell.Controls.Add(val);
}