I can't say that I've tried this. My solution is for you to try a different UI approach. Collapsed Views are just not a standard web design element like they are in the notes client.
I suggest you put your categories in a combo box or type ahead field or something like that to get a hold of the category they are looking for and then use that to partial refresh a view control or repeat control showing them the filtered data. That's a much more common web experience.
I don't think I have an exact example of this but there's one on my website that uses a search my last name here:
http://xpagescheatsheet.com/cheatsheet.nsf/repeat1.xsp
Just a thought.