So I have a winform application that is being used by about 100 people across 5 remote desktop servers 24 hours a day for the last few years.In that time I have seen this problem a handful of times but it seems to be happening more often to one user now.Typically I see this with users with multiple monitors.
In this case I had the user log out of the system, log back on and follow all the steps that led to the bug the first time but it is not reproducible for him.It seems to affect EVERY combo box in the entire application (and there are lots of screens).
I am using appstyling I'm not sure if that has anything to do with it. I have attached a screenshot.. it almost looks like the combobox is sizing to a negative width??
I have no idea where to start tracking this down but any suggestions are welcome!
Hi,
What version of the controls are you using? It looks like the auto-sizing logic that determines the size of the dropdown thinks that there isn't enough room for the combo to display at the correct width. There was a bug in this logic that would sometimes get the wrong screen size when using a remote desktop connection, but that bug was fixed a couple years ago. So if you are using an old version of the controls, it might be worth upgrading or trying the latest service release.
Unfortunately, the issue is happening with a very recent version of the library (13.2.20132.2010).
Just today I upgraded to 13.2.20132.2023 but unless this is a bug that was fixed in the last month or so I am not hopeful this will solve it.
Greg
Nevermind, found it. Some of the code for calculating the dropdown extents are not public so this is the closest I could get.
Not perfect but it sizes without using the autosize.
Going to try this and see if it fixes it for me.
private int ColumnWidth()
{
if (DisplayLayout.SortedBands == null) return -1;
if (DisplayLayout.SortedBands.Count < 1) return -1;
int width = DisplayLayout.SortedBands[0].GetExtent() + DisplayLayout.SortedBands[0].GetOrigin();
return width + 30;
}
protected override void OnAfterDropDown(EventArgs e)
base.OnAfterDropDown(e);
int width = ColumnWidth();
if (DropDownWidth < width) DropDownWidth = width;
protected override void OnAfterDropDownResize(EventArgs e)
base.OnAfterDropDownResize(e);
Hello,
I am just checking about the progress of this issue. Let me know If you need any further assistance on this issue?
Thank you for using Infragistics Components.
Thanks for checking up, I deployed my solution but it's too soon to say if it has fixed the problem.
Hello,
Thank you for your feedback. Please feel free to contact with us if you need any further assistance on this issue.
After many hours I have managed to create a stripped down stand alone version of my application that still reproduces the bug.
Every time I can get it to display the drop down combo on the wrong monitor. The narrow combobox bug I think is related but does not reproduce every time.
How can I submit the file for someone to look at? I would prefer not to post it publicly.
Hello ,
I’ve created support ticket for you in our Issue tracing system, its id is CAS-140937-G8J6L6 and you could view it under “Support Activity ” in your account:
https://ko.infragistics.com/my-account/support-activity
So please add zip of your sample to the mentioned case in order to continue with the investigation of this issue.
Thank you for your collaboration.
I would rather not post the code publicly and unless I misunderstand something this is what you are requesting.
Can I send it to you directly somehow?
You should zip your files, then when you press "Reply", go to "Option" tab and press "Add/Update" button -> "Choose File", then navigate to your files and press "Save".
I am waiting for your details.