PivotGridV2 HtmlHelper概述

Telerik UI PivotGridV2 HtmlHelper for ASP。网络核心is a server-side wrapper for the Kendo UI PivotGridV2 widget.

PivotGridV2以跨表格格式表示多维数据。

面向ASP的Telerik UI。网络核心Ninja image

PivotGridV2是面向ASP的Telerik UI。网络核心一个专业级的UI库,包含 110+ 组件,用于构建现代和功能丰富的 应用程序。要想尝试一下,注册一个30天的免费试用。

与传统的PivotGrid相比,新的pivotgrid2提供了全新的设计,其面向未来的架构允许实现许多即将到来的功能。我们建议在你的新项目中使用PivotGridV2,因为在未来的某个时候,PivotGridV2将取代旧的PivotGrid。有关PivotGrid和PivotGridV2之间差异的更多详细信息,请参阅比较篇文章。

基本配置

将PivotGridV2配置为Ajax绑定到冒险的工作托管的多维数据集https://demos.telerik.com/olap/msmdpump.dll

  1. 创建一个新的ASP。网络核心application. If you have the面向ASP的Telerik UI。网络核心Visual Studio Extensions安装后,为ASP创建一个Telerik UI。. NET Core应用程序。命名应用程序KendoPivotGridV2.如果您决定不为ASP使用Telerik UI。. NET Core Visual Studio扩展, follow the steps from the入门文章为ASP添加Telerik UI。网络核心to the application.
  2. 添加一个pivotgrid2到指数视图。

    @(Html.Kendo(). pivotconfiguratorv2 (). name ("configurator") . filterable (true) . sortable (). height (570)) @(Html.Kendo(). pivotgridv2 (). name ("pivotgridv2") . columnwidth (200) . height (570) . configurator ("#configurator") . dataSource (dataSource => dataSource;Xmla() . columns (columns => {columns. add("[日期].[日历]"). expand (true);columns.Add(“[产品]。[类别]”);}) . rows (rows => rows. add("[地理].[城市]")). measures (measures => measures。值(新string[]{”(措施)。[经销商运费成本]"}).Transport(transport => transport .Connection(connection => connection .Catalog("Adventure Works DW 2008R2") .Cube("Adventure Works")) .Read(read => read .Url("https://demos.telerik.com/olap/msmdpump.dll") .DataType("text") .ContentType("text/xml") .Type(httpverb. post)))))) .Read(read => read .Url("https://demos.telerik.com/olap/msmdpump.dll")
       < PivotDataSourceType ="PivotDataSourceType. "xml ">       < /行> < /行> <措施值= @(新string[]{”(措施)。[经销商运费成本]"})>     
  3. 构建并运行应用程序。

下图展示了前一个示例的输出。

用于ASP的UI。网络核心PivotGridV2bound to data

功能和特性

引用现有实例

要引用现有的PivotGrid实例,请使用jQuery.data ()方法。一旦建立了引用,就使用PivotGridV2客户端API控制它的行为。

var pivotgridv2 = $("#pivotgridv2").data("kendoPivotGridV2");

另请参阅

在本文中
Baidu
map