I would just like to confirm that your solution is what I would recommend as well. It follows correctly the logic the filtering feature uses to hide the necessary rows.
On a side note, while the hidden rows and columns feature is still not available, there is an item logged for it in our feedback
portal, where its progress can be tracked.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.