Category / Section
How to make the Pivot Grid as default view control in the Pivot Client?
This KB illustrates that how to make the Pivot Grid as default view control in the Pivot Client.
Solution:
You can display the PivotGrid as default view in the PivotClient with respective to the JS, ASP and MVC platforms by using the following code example.
JS
$("#PivotClient1").ejPivotClient({
url: "../wcf/OlapClientService.svc", title: "OLAP Browser",
displaySettings: { defaultView: "grid" }
});
MVC
@Html.EJ().Pivot().PivotClient("PivotClient1").Url("../wcf/OlapClientService.svc").Title("OLAP Browser").DisplaySettings(disp => { disp.DefaultView(PivotClientDefaultView.Grid); });
ASP
<ej:PivotClient ID="PivotClient1" runat="server" Url="../wcf/OlapClientService.svc"> <DisplaySettings DefaultView="Grid"/> </ej:PivotClient>