I use filter control with two buttons to filter content with different filters.
When I click on the first button, the contents of the list must be filtered with the code whose value is equal to E1
When I click on the second button, the contents of the list must be filtered with the code whose value is equal to E12
The problem is that when I click on the first button, the contents of the list display all the code (E1 and E2) rather than only E1. I have to click twice on the first button to only have E1 in the list
There is another problem when I click on the second button and thereafter on the first button, the contents of the list shows E2 rather than E1.
I made a sample to reproduce my probleme.
Thanks for your help.
Thank you for the sample. Let me explain why this behavior occurs.
The ActionButtonIndex property is set to 0. As a result, when you click the first button, the popup window is opened. After that the ButtonClick event is raised. Since you set the currentButtonTag value in the ButtonClick event, I suggest setting the ActiveFilterString property in this event handler as well.
I have recorded a video and attached the modified sample to illustrate this approach.
Please try it and let me know if this solution suits you.