Dropdown inside ultragrid stays open unless you click on another control inside the ultragrid band. I have been told this is a known issue. I have tried using ultraGridFilters.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.ExitEditMode); in
ultraGridFilters_AfterSelectChange, ultraGridFilters_ClickCell, ultraGridFilters_BeforeExitEditMode How could I cycle through all the row/cells and close the dropdown on lost focus? For some reason I could insert an image.
Hi Janaka,
Thank you for posting in our forums!
Please let me know what is your expectation about the behavior of the DropDown. In case you select an item or click outside of the DropDown’s area it will automatically close its list of items. Can you provide me with steps that describe how the DropDown loses focus and its list of items stays opened? Do you use the latest version of Infragistics Windows Forms Components?
The answer to your question might be this line of code.
In addition, I created a small sample project for you. Please try to modify it, in order to navigate me through steps to reproduce. You can also attach an image file of your application as well.
Hello Ivaylo,
Thank you for your response, What I am trying to do is when I have a dropdown which is open, if I click to any other band I would like the dropdown to close. Currently if I open the other band the dropdown stays open. Only when I click inside the grid cell to another control will the dropdown close. I have attached an image.
thank you ,
Janaka
I tried the method and it did not work :-(
I am not able to reproduce your issue.
How you gained the information that this is a known issue. What version of our components do you use? Can you isolate the issue in a sample project and attached it to your next post?
Hi Ivaylo,
This is the solution I found:
void ultraExplorerBar1_GroupClick(object sender, GroupEventArgs e)
{
var criterionGrid = (e.Group.Tag as CriterionGrid.CriterionGrid);
var criterionDt = (e.Group.Tag as CriterionDateTime);
if (criterionGrid != null)
criterionGrid.Focus();
}
else if (criterionDt != null)
criterionDt.Focus();
Thank you for sharing with us the solution regarding your question.
Please let me know if you need further assistance.