When I set DropDownControl property of UserComboBox to any other control it hides the other control from the designer and never come back. I attached an printscreen. I am working on the version 188.8.131.52.
I also download the project attached to this thread (https://wisej.com/support/question/initial-test-on-usercombobox). At first, the usercontrol that setted to usercombobox can be seen at design time, but when I resetted the usercontrol to component it also dissappered from the form and I could’nt show it again even though I reseted from the designer.cs.
Is it me or the latest Dev Build version 1.4.54 has broken the usercombobox ??
I should be able to create a UserControl, Build, Add it to the Window at design time, add a userComboBox and set it’s DropDownControl as the userComboBox.
I’m missing something ?
As work around (but then what’s the meaning of having a usercombobox instead of combobox):
public partial class Page1 : Page
userControl1.Location = new System.Drawing.Point(userComboBox1.Location.X, userComboBox1.Location.Y + userComboBox1.Height);
private void userComboBox1_DropDown(object sender, EventArgs e)
userControl1.Visible = true;
private void userComboBox1_DropDownClosed(object sender, EventArgs e)
userControl1.Visible = false;
Thank you. Got the sample.
The custom drop down works well when you don’t use a UserPopup inside the dropdown. Which is correct. The user popup is meant to be used programmatically this.userPoup1.ShowPopup() to show a popup panel in relation to a control.
There is a bug when displaying a context menu in a popup, it seems that when the popup is closed, the context menu is reopened at 0,0. Will log and get it fixed in the next update hopefully.
For the ComboBox in the drop down, I cannot reproduce. I get the data in the drop down. There is a sample I linked before with a complex drop down including datagrids with data. Can you attach a test case showing the other issue you mentioned?
Can you attach the test case?
As you said when I use panel it works perfect. I will use that. But I found another bug I think. Take a look at my animated gif attachmet. When I am using userpopup problem is still alive. I will attach animated gif screen cast in second message.
I can’t reproduce. Try the app attached here: https://wisej.com/support/question/initial-test-on-usercombobox
If you are using a UserPopup as the control attached to the DropDownContol property that is probably the issue. The DropDown part is already a UserPopup. You can use any control, including panels.
thank you for fast fixing. 🙂
I think I found another one. This time, similar problem is seen at runtime.
At first click to usercombobox shows what I need (userpopup) and It seems work perfect. But after second click, it shows nothing.
I am working on the version 184.108.40.206.
From the image looks like you are using a UserPopup for the UserComboBox. The UserPopup is supposed to be used independently from the UserComboBox, it’s a panel that you can popup programmatically in relation to any other control. The UserComboBox already uses a UserPopup as the drop down.
However, there are 2 bugs: 1) the control assigned at design time is removed from the design surface – it should be removed only at creation; 2) when detaching the control from the DropDownControl property, the parent is not restored. Logged as WJ-8087 and WJ-8088.
Please login first to submit.