Hi all, Hope all are doing good. Well I need help in a scenario. I need to implement the pagination on my gallery. All working fine but I am stuck when my user search a against a specific item and if the gallery.AllItemCount < the pagination limit my next Icon still editable whereas I need to Disable it. I have tried many ways but no luck can any one help.
I am attaching screen Shoot for the better understanding of the problem.

it is working fine without the searching as I want it but when I search it still counting the actual items in the backend. If I try to set the mode based on the galleryCount its throwing me the Cross-Reference/ Circular-Reference error.