Articles in this section
Category / Section

How to hide the toolbar button in PivotClient ?

1 min read

This KB illustrates that how to hide toolbar button in PivotClient control.

Solution:

Refer to the following code examples to hide the toolbar button in PivotClient.

 

JavaScript

<script type="text/javascript">
$(function () {
      $("#PivotClient1").ejPivotClient({ url: "../wcf/OlapClientService.svc", title: "OLAP Browser", chartLoad: "OnHideToolbarIcon" });
});
function OnHideToolbarIcon(args) {
$(".addReportImg, .newReportImg").hide(); 
}
<script/>

 

ASP

<ej:PivotClient ID="PivotClient1" runat="server" Url="../wcf/OlapClientService.svc">
     <ClientSideEvents  ChartLoad="OnHideToolbarIcon" />
</ej:PivotClient>
<script type="text/javascript">
function OnHideToolbarIcon(args) {
$(".addReportImg, .newReportImg").hide();
}
<script/>

 

MVC

@Html.EJ().Pivot().PivotClient("PivotClient1").Url(Url.Content("~/wcf/OlapClientService.svc")).Title("OLAP Browser").ClientSideEvents(oEve => { oEve.ChartLoad("OnHideToolbarIcon"); }) 
<script type="text/javascript">
function OnHideToolbarIcon(args) {
$(".addReportImg, .newReportImg").hide();
}
<script/>

 

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