HI,
I have a complexe UI with Multiple Usercontrols that are depending on each other. So when I change the value of one item I have to do a recalc to all other controls. Each controls checks if it depends on the latest modifications and then recalcs itslef (means loads rowsource, default value and so on).
This works fine but in the case of UltraCombo sometimes the popuplist does not closeup after click? I did allready put the recalc-Method into a separate thread. This made it better but there are still remaining lists that stay "open" after click.
I am using Infragistics.Win.UltraWinGrid.UltraCombo. Here is my code:
private void OnComboEditorValueChanged(object sender, EventArgs e){ if (this.inRefresh == true) return;
if (this.boundParameter == null || this.comboEditor.Value == null) return;
this.boundParameter.Value = this.comboEditor.Value; if (!this.boundParameter.SuppressRecalc && this.boundParameter.Modified) { if (this.boundParameter.Locked) DoRecalc(); else if (this.boundParameter.RecalcLockedOnly == false) DoRecalc(); }
Application.DoEvents();}
public void DoRecalc(){ if (this.inRefresh) { return; } if (this.boundParameter != null) { System.Threading.Thread t = new System.Threading.Thread(this._doRecalc); t.Start(); }}
public void _doRecalc(){ this.boundParameter.Funktionseinheit.Recalc();}
Any ideas how I can force the Ultracombo closeup?
Kind Regards and have a nice Easter Weekend.Patrick
Hi Patrick,
There is a CloseUp method on the control, I think, so you could use that to work around the issue.
But the combo closes up automatically when you click on an item to select it. So if it's not closing up, I'd probably try to find out what's stopping it rather than work around it by closing it up manually.
My guess is that the control is somehow losing the MouseUp message because you are doing something in the MouseDown, or else it has something to do with the threading you are doing.
Hi Mike,
no there is not closeup method available to the control. The control is a UltraWinGrid.UltraCombo. I am using this within a usercontrol. There are no event handlers on mouseDown, -Up or -Move. The only events I am listening are:
I don't think, that this behavior is an effect of threading. Because I did the threading things as workaround. I first worked with ComboEditor. But since multicolumn dropdownlist is required I changed to ultracombo and here I experienced this behaviour. So I tried out threading. This made it better but there are still remiaining situations where the dropdown list remains "un-closeup-ed".
Kind Regards
Patrick