Tommyworker
2018-04-27T16:58:35Z
Hello together,
i have a problem with the auto filter listbox. Customer told me that the list box
is getting always smaller and in the end they can not click to someting?

i use the grid version 5.0.15

i tried this on VS.2015 and i have an other issue. After the third klick on the autofilterlistbox
the ok button disappears?

We dont make anything with the grid or autofilter only klicking more the 3 times on the dropdown button from
the autofilter.

Windows 10 pro by me and windows 7 enterprise by my customer

is there a way to refresh the list manually?

regards Thomas
Igor/10Tec
2018-04-28T08:26:25Z
We have never heard about this problem earlier. Can you reproduce this issue with any grid or only with one grid in your app? Can you post some screenshots here demonstrating how the filter box is getting smaller after the 2nd, 3rd, ... open?

Just an idea. This can be a problem related to UltraHD screens. Do you support them in your app?
Tommyworker
2018-04-30T06:38:33Z
Hello Igor,
in my tests i can fix the problem if i change the target Framework from 4.5 down to 4.0
Regards Thomas
Igor/10Tec
2018-04-30T15:30:08Z
Strange. iGrid.NET 5.0 was developed with the target framework set to .NET 4.0, and we have never seen this problem with the filter box.

I am waiting for your screenshots in emails. Perhaps, they will help me to understand what it could be.

Have you tried to reproduce the issue in a brand new project?
Tommyworker
2018-04-30T16:02:15Z
Hi Igor,
sorry i send you the screenshot via mail.
No, i never have the problem before. In a newer project no customer has customer has maild me this problem.
In this case the customer runs the app for 8 hours with any restarting the app.
The grid is runing great. they are working with it a long time.
Now we have upgraded there project with a new feature and so we switched (because its able) to the highest
Framework that ist installed on this company.

regards thomas
Igor/10Tec
2018-05-02T06:39:04Z
It's not clear from your last post whether the problem has been fixed with the upgrade to the latest .NET Framework (4.7). Please, confirm.
Tommyworker
2018-05-02T08:31:19Z
Hello Igor,
i compiled the app with the .Net Framework(4.5) than i have problems.
After searching(i have an older version of the app compiled an .Net Framework 4.0) i recompiled the app with .Net Framework (4.0)
and the problem was solved. (nothing on 4.7)
Regards Thomas
Igor/10Tec
2018-05-03T07:47:37Z
I experimented with various versions of .NET in AutoFilterManager and the test app. I confirm that the problem you reported occurs if the app using AutoFilterManager is compiled for .NET Framework 4.5 or higher (tested it with 4.6 and 4.7 also). BTW, there is no difference whether the AutoFilterManager add-on is compiled for .NET 4.0 or another version of .NET.

It seems that Microsoft changed something in .NET 4.5, and our AutoFilterManager code or the iGrid drop-down functionality this add-on is based on stopped working properly. That's bad because that code has been working for years flawlessly...

Let me work with this problem under the debugger and find a workaround for it. I'll write a new post here as soon as I have any positive result.
Tommyworker
2018-05-03T08:08:00Z
thank you for the attention on this fact.
i hope theres is not much time to find the ms change between the 4.0 and 4.5 and higher .Net Framework.
regards Thomas
Igor/10Tec
2018-05-03T11:48:38Z
I found the culprit. It's the SystemInformation.FrameBorderSize member from the .NET Framework, which is used internally in iGrid to calculate the appropriate size of the drop-down form. SystemInformation.FrameBorderSize returns the correct value of (8, 😎 in .NET 4.0, but in .NET 4.5 it returns (4, 4) - which leads to decreasing of the drop-down form every time when it is shown.

I also found a report about this problem with SystemInformation.FrameBorderSize on StackOverflow:

The SystemInformation.FrameBorderSize return wrong size 

Give me some time to find another and robust way to determine the correct form border size that will work properly in all supported versions of .NET Framework. I'll fix AutoFilterManager as soon as I find such a way.
Igor/10Tec
2018-05-04T12:43:30Z
Thomas, I implemented the bug fix and sent you the link to the interim build of iGrid with this bug fix to your email. Will be looking forward to the results of your tests.