UserComboBox hides setted dropdowncontrol

0
0

Hi,

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 1.3.38.0.

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.

thank you.

Attachment
  • You must to post comments
0
0

Hi Eric,

thanks, it´s a regression between dev builds. We have fixed it and it will be included in the next Wisej release.

We´ll inform you when it´s online.

Best regards
Frank

  • You must to post comments
0
0

Hello,

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.

  • At first time run, the user control is visible and shown where placed on the window, but not shown when clicking.
  • At second run the user control has disappeared, but still not shown when Clicking.

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
{
public Page1()
{
InitializeComponent();
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;
}
}

Regards.

  • You must to post comments
1
0

Hi Adil,

the bug (WJ-8117) is fixed in our latest release (1.3.43).

Best regards
Frank

  • You must to post comments
0
0

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?

  • Adil Battal KAYA
    Hi Luca, I used splitbutton and userpopup controls together. On userpopup I added combobox and datagridview then I populate their datasources. Now everything works fine like as what I need. :) But when I used the usercombobox instead of splitbutton and panel as a dropdowncontrol the problem still alive. Thank you.
  • You must to post comments
0
0

I created a small project with the same results.

 

Attachment
  • You must to post comments
0
0

Can you attach the test case?

  • Adil Battal KAYA
    Hi Luca, İn addition to my case, when I add a combobox or a datagridview to panel that attached to usercombobox, their datasources’ can be populated but combobox dropdownlist and datagridview never display the data. Thank you.
  • You must to post comments
0
0

This is the second sample. 🙂

Attachment
  • You must to post comments
0
0

Hi Luca,

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.

Thank you.

Attachment
  • You must to post comments
0
0

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.

 

  • You must to post comments
0
0

Hi,

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 1.3.42.0.

thank you.

  • You must to post comments
1
0

Hi Adil,

both bugs (WJ-8087 and WJ-8088) are fixed in the latest release (1.3.40).

Best regards
Frank

  • You must to post comments
0
0

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.

 

  • You must to post comments
Showing 12 results
Your Answer

Please first to submit.