public void PopulateActivityTypes(Dictionary <int, string> activityTypes) { ActivityTypeDropDownList.DataSource = activityTypes; ActivityTypeDropDownList.DataTextField = "Value"; ActivityTypeDropDownList.DataValueField = "Key"; ActivityTypeDropDownList.DataBind(); }
public void PopulateActivityTypes(IList <ListItem> activityTypes) { ActivityTypeDropDownList.DataSource = activityTypes; ActivityTypeDropDownList.DataTextField = "Text"; ActivityTypeDropDownList.DataValueField = "Value"; ActivityTypeDropDownList.DataBind(); }
private void Clear() { ViewState.Remove("EditNoteId"); ActivityTypeDropDownList.ClearSelection(); NoteTypeDropDownList.ClearSelection(); CommentEditTextBox.Text = string.Empty; FeedbackLabel.Text = string.Empty; CustomerNoteDescriptors.Visible = true; }
private void ClearControls() { ActivityTypeDropDownList.ClearSelection(); NoteTypeDropDownList.ClearSelection(); NextCallDueTextBox.Text = System.Web.HttpUtility.HtmlDecode(string.Empty); CommentTextBox.Text = string.Empty; FeedbackLabel.Text = string.Empty; CustomerNoteDescriptors.Visible = !SessionWrapper.Instance.Get.IsAllClientsSelected; PermanentNoteCheckBox.Checked = false; }
public void PopulateDropDownLists() { ActivityTypeDropDownList.DataSource = ActivityType.KnownTypesForNewNotes; ActivityTypeDropDownList.DataTextField = "Value"; ActivityTypeDropDownList.DataValueField = "Key"; ActivityTypeDropDownList.DataBind(); NoteTypeDropDownList.DataSource = NoteType.KnownTypesForNewNotes; NoteTypeDropDownList.DataTextField = "Value"; NoteTypeDropDownList.DataValueField = "Key"; NoteTypeDropDownList.DataBind(); }
private void ClearControls() { ActivityTypeDropDownList.ClearSelection(); NoteTypeDropDownList.ClearSelection(); NextCallDueTextBox.EncodedText = string.Empty; CommentTextBox.EncodedText = string.Empty; FeedbackLabel.Text = string.Empty; PermanentNoteCheckBox.Checked = false; CustomerNoteDescriptors.Visible = true; }