Articles in this section
Category / Section

How to hide the MDX Query Button from OlapClient Tool Bar

1 min read

The MDX query button visibility has been collapsed using the below code snippet.

C#

 

OlapToolBarButton btnShowMdx;

for (int i = 0; i < this.OlapClient.OlapClientToolBar.Items.Count; i++)

{

  if (this.OlapClient.OlapClientToolBar.Items[i] is OlapToolBarButton)

  {

    btnShowMdx = this.OlapClient.OlapClientToolBar.Items[i] as OlapToolBarButton;

 

    if (btnShowMdx.Name == "PART_ShowMdx")

    {

       btnShowMdx.Visibility = Visibility.Collapsed;

       break;

 

    }

   }

}

 

 

Figure: OlapClient ToolBar with Collapsed MDX Query Button

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied