Category / Section
How to disable expand/collapse popup menu in the PivotChart?
1 min read
This KB illustrates that how to disable expand/collapse popup menu in the PivotChart.
Solution:
You can disable the popup menu by using pointRegionClick event and the following code examples illustrate the same.
JavaScript
$("#PivotChart1").ejPivotChart({ url: "../wcf/OlapChartService.svc", pointRegionClick: "disablePopUp" }); function disablePopUp(args) { $(".expandMenu").remove(); }
ASP
<ej:PivotChart ID="PivotChart1" runat="server" Url="../wcf/OlapChartService.svc"> <ClientSideEvents PointRegionClick="disablePopUp"/> </ej:OlapChart> <script type="text/javascript"> function disablePopUp(args) { $(".expandMenu").remove(); } <script/>
MVC
@Html.EJ().Pivot().PivotChart("PivotChart1").Url(Url.Content("~/wcf/OlapChartService.svc")).ClientSideEvents(clientSideEvent => clientSideEvent.PointRegionClick("disablePopUp")) <script type="text/javascript"> function disablePopUp(args) { $(".expandMenu").remove(); } <script/>