Skip to content

UserComboBox hides setted dropdowncontrol #679

Closed

Description

@itg-assistant

Adil Battal KAYA asked 2017-03-06 14:17:18 UTC

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 (http://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.

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-03-06 19:03:03 UTC

    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.

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2017-03-08 22:21:29 UTC

    Hi Adil,

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

    Best regards
    Frank

  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Adil Battal KAYA answered 2017-03-13 22:02:49 UTC

    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.

  4. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-03-13 22:13:55 UTC

    I can't reproduce. Try the app attached here: http://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.

  5. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Adil Battal KAYA answered 2017-03-13 23:23:47 UTC

    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.

  6. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Adil Battal KAYA answered 2017-03-13 23:27:06 UTC

    This is the second sample. :)

  7. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-03-13 23:32:25 UTC

    Can you attach the test case?

  8. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Adil Battal KAYA answered 2017-03-13 23:54:01 UTC

    I created a small project with the same results.

  9. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Adil Battal KAYA answered 2017-03-14 18:37:17 UTC

    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.

  10. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-03-14 23:16:17 UTC

    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?

  11. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Adil Battal KAYA answered 2017-03-15 20:22:27 UTC

    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.

  12. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2017-03-21 23:04:13 UTC

    Hi Adil,

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

    Best regards
    Frank

  13. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Eric Mathay answered 2018-01-19 13:32:57 UTC

    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.

  14. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2018-01-19 18:43:41 UTC

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions