What is the best method to show/hide individual dataSources in a DataSourceCollection? I’ve got my data segregated by different categories, each one a dataSource. I’ve made a “data layer” toggle, and I’d like to show/hide individual dataSources, but the best method that exists appears to be viewer.dataSources.remove(myDataSource). I could remove the dataSource and then add it back later, but is there a better way? Am I going about this the wrong way?
I just iterated through the entity collection and toggled the show property of each entity. Not the most efficient way to go about it but it works.