How to hide the toolbar button in PivotClient ?
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/>