Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
665
ComboBox does not closeup
posted

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

Parents Reply Children