I have a RadGrid using GridDropDownColumn with two columns. Column1: Status and Column2: CompleteDate
Column1: Status has three items in the dropdown--->Not Started, In-Progress and Completed
Column2 is using RadDatePicker as DbSelectedDate
I need a way when Completed is selected from the Column1:status, Column2: CompleteDate should default to today's date and allow the user the opportunity to change it
I am using the code below but missing alot. Any help out there.
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
GridDataItem item = (GridDataItem)e.Item;
RadComboBox list = (e.Item as GridEditableItem)["MitigationStatusID"].Controls[7] as RadComboBox;
//attach SelectedIndexChanged event for the combobox control
list.AutoPostBack = true;
list.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(list_SelectedIndexChanged);
}
}
void list_SelectedIndexChanged(object sender, EventArgs e)
{
GridEditableItem editedItem = (sender as RadComboBox).NamingContainer as GridEditableItem;
Column1: Status has three items in the dropdown--->Not Started, In-Progress and Completed
Column2 is using RadDatePicker as DbSelectedDate
I need a way when Completed is selected from the Column1:status, Column2: CompleteDate should default to today's date and allow the user the opportunity to change it
I am using the code below but missing alot. Any help out there.
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
GridDataItem item = (GridDataItem)e.Item;
RadComboBox list = (e.Item as GridEditableItem)["MitigationStatusID"].Controls[7] as RadComboBox;
//attach SelectedIndexChanged event for the combobox control
list.AutoPostBack = true;
list.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(list_SelectedIndexChanged);
}
}
void list_SelectedIndexChanged(object sender, EventArgs e)
{
GridEditableItem editedItem = (sender as RadComboBox).NamingContainer as GridEditableItem;