Epiultracombo change event

I am trying to put a trigger on a change even for an epiultracombo with a static list. It works when you first click on the value in the list (I see the other field populate), but as soon as you release the mouse click to select the value the other field returns to 0.

I have tried with Text change, value change, and afterfieldchange for the data field and still can’t seem to get it to work.

	private void cmbPC_TextChanged(object sender, System.EventArgs args)

	{
		if(this.cmbPC.Text.ToString() == "Onsite Visit")
		{
		this.numSeverity.Value = 1;
		}
		if(this.cmbPC.Text.ToString() == "Warranty")
		{
		this.numSeverity.Value = 2;
		}
		if(this.cmbPC.Text.ToString() == "Return")
		{
		this.numSeverity.Value = 3;
		}
		if(this.cmbPC.Text.ToString() == "Other")
		{
		this.numSeverity.Value = 0;
		}
	}

Hi Marc,

If that textbox is bound to a dataview field in Epicor, I would use AfterFieldChange from Epicor’s wizard. That is to catch the event when the user changes it. For the others (record is changed in form, clear form, refresh, etc.) I would look at EpiViewNotification Initialize.
If the textbox is not bound to anything, I usually go for the ValueChanged event. Maybe set it as a dropdown list first to avoid annoying issues (like event fires after each keystroke).

cbCStatus.DropDownStyle = Infragistics.Win.UltraWinGrid.UltraComboStyle.DropDownList;

Dragos

1 Like

I have already tried the Afterfieldchange from the wizard and that also did not work. This way doesn’t do anything at all.

I was able to get it to work by setting the dataview value instead of the numeric object value

1 Like

THANK YOU.