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
  • 469350
    Suggested Answer
    Offline posted

    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.

Reply Children