or
GridDropDownListColumnEditor category = (GridDropDownListColumnEditor)item.EditManager.GetColumnEditor("RiskCategory");
TableCell catcell = (TableCell)category.ComboBoxControl.Parent;
CompareValidator comp = new CompareValidator();
comp.ID = "compID";
comp.ControlToValidate = category.ComboBoxControl.ID;
comp.ValueToCompare = "Select a category";
comp.Operator = ValidationCompareOperator.NotEqual;
comp.ErrorMessage = "Please select a valid category";
catcell.Controls.Add(comp);
if (Session["FacilityID"] != null)
{
FacilityID = Utils.ToInteger(Session["FacilityID"].ToString());
if (Utils.ToInteger(radcmbFacility.SelectedValue.ToString()) != FacilityID)
{
radcmbFacility.SelectedValue = FacilityID.ToString();
}
}
}}return this.oldstep(e); // This is the error point
};
I Have 2 RadDatePicker and I’d like to ask if it’s possible to disable dates before a specific dates selected
(as airlines dates you can't select a return date before a departure date)
i used a trick that i changed the MinDate of the second RadDatePicker to the selected date of the first one in the code behind but its kind slow.
protected
void
pickDateFrom_OnSelectedDateChanged(
object
sender, EventArgs e)
{
if
(pickDateFrom.SelectedDate.HasValue)
{
pickDateTo.MinDate = pickDateFrom.SelectedDate.Value;
}
}
is there any way to do this in JavaScript or something to make it faster
i'm Sorry this is asp.net problem not a windows forms one, admin could you please delete it or move it to the right section.