How to hide the dimensions present in Cube Dimension Browser?
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 forums, Direct-Trac, or feedback portal. We are always happy to assist you!