Phil Holt
03.15.2007
I have an application that uses the RibbonControl, in it I have a DropDown Button menu item which has a popup menu item, in the popup menu item I have a ButtonEdit control, in this ButtonEdit control I handle the button click event to show a standard FolderBrowseDialog... Once the user selects a path I want to updated the ButtonEdit editbox control. The issue I have is that once the FolderBrowseDialog is display I only get to click it once (does not matter where I click it) and then the FolderBrowseDialog is close immediately. I am not sure what is closing the dialog but because of this problem I don't get to select a folder path etc... Thanks in advance
Hello,
We've investigated this issue. Unfortunately the windows architecture doesn't allow us to fix this problem. The popup window needs to be closed when a dialog is opened.
In your scenario, you can prevent the dialog from being closed. To do this, you need to close the popup window before opening the dialog, as in the code below:
void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) {
(barButtonItem1.DropDownControl as DevExpress.XtraBars.PopupMenu).HidePopup();
folderBrowserDialog1.ShowDialog();
}
Thank you, Alex.