How to Set the DisplayMode for OlapClient

In OlapClient, by default the Chart and Grid controls has been displayed using the tab control. We can able to set the display mode for OlapClient to show both chart and grid or only chart or only grid. This can be achieved using following code snippet.