Hello,
I'm running version 9.2.20092.2023 and experiencing a behavior where a custom filter clears out when the filter button is clicked. This only occurs when the FilterUIType is set to LabelIcon, and I have verified that this was not occuring in version 1007. To duplicate:
- Create a grid and set the FilterUIType to LabelIcon.
- Click the Filter Button, go to (Custom), and add a condition. For example, StartsWith 'A'.
- Click OK and the filter will be applied.
- Click the Filter Button again, as though you wanted to modify your custom filter. As the dropdown opens, the filter will clear and the filtered out rows will become visible again. If you click (Custom) again, no conditions will be present.
Is there any chance this has been resolved in a more recent service release? If not, I have some more details.
More details:
It looks like when you click the Filter Button, the Checked event is fired. This is the same as 1007. But, in 2023, this causes the XamComboEditor contained within the FilterButton Template to enter edit mode. This in turn causes the combo box to try and resolve its selected item. Because the operand is custom, it resolves to null, which causes a reset to fire on the ConditionsGroup, clearing it out. I have a stack trace saved from within the FilterRecord PropertyChanged event which illustrates this. If this is still an issue, I can upload it to assist debugging.
Thanks Alex,
I will report back as soon as I get a chance to test it.
I tested this with the latest service release for v9.2 (2064) and the v10.1 and the issue is not reproducible. This is probably something that we have resolved right after 2023 so please test this with the latest service release.
I have a little more information on this, or at least one more thing to rule out. This occurs regardless of whether of whether or not I specify a them for the grid, or which theme I specify. I've noticed some differences between the templates between certain themes, which I may create a separate post for later, but that does not seem to be the case here.
Please let me know if you need any more information to be able to look into this.