I would like to know how you can combine an XML generated
menu with a view state, such that when I select options from the
menu, I hide and show the different states. I have some rough idea
but I don't know how to call the events etc...Can anyone show me an
Well, you don't. The dataProvider controls the content of the
menu. You assign a click handler function to the menu, and in that
funcion access the underlying menu item in the dataProvider. You
use that information to run whatever functionality you want.