Articles in this section
Category / Section

How to hide the dimensions present in Cube Dimension Browser?

1 min read

This KB illustrates that how to hide the dimensions present in Cube Dimension Browser in JavaScript PivotClient.

Solution:

You can remove the dimensions from Cube Dimension Browser in PivotClient, using the following code example with respective to JS, ASP and MVC platforms.

JavaScript

$(function () {
$("#PivotClient").ejPivotClient({ url: "../wcf/OlapClientService.svc", title: "OLAP Browser", chartLoad: "CubeSelector" });
});         
<script type="text/javascript">
function CubeSelector(args) {
$("#PivotClient li[tag='[Geography]']").remove();
}
<script/>

ASP

<ej:PivotClient ID="PivotClient1" runat="server" Url="../wcf/OlapClientService.svc">
        <ClientSideEvents  ChartLoad="CubeSelector" />
</ej:PivotClient>
<script type="text/javascript">
function CubeSelector(args) {
$("#PivotClient li[tag='[Geography]']").remove();
}
<script/><script/>

MVC

@Html.EJ().Pivot().PivotClient("PivotClient1").Url(Url.Content("~/wcf/OlapClientService.svc")).Title("OLAP Browser").ClientSideEvents(oEve => { oEve.ChartLoad("CubeSelector"); }) 
<script type="text/javascript">
function CubeSelector(args) {
$("#PivotClient li[tag='[Geography]']").remove();
}
<script/>

 

Conclusion

I hope you enjoyed learning about how to hide the dimensions present in Cube Dimension Browser.

You can refer to our  JavaScript PivotClient feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our  JavaScript PivotClient example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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