I have view port. On the left side(west reign) I have menu. When user clicks on some item from that menu, the central content should be changed.
Each central content has one grid and some search fields at the top of it.
What is the best way to accomplish this?

One way is to have different panels and just show and hide them.
Other way is that there is only one panel and I change dynamically the content of that panel.

An other way? What should be the most optimal scenario for this case?

Thank you,