Pivot 枢轴网格- Asp.Net MVC
2016-08-23
0 0 0
暂无评分
其他
如何获取积分?
翻译 maninwest@Codeforge 作者:Anurag Gandhi@CodeProject
一个具有 pivot 选项的 Asp.Net MVC 的网格/报告控件。
使用代码
需要添加到 ReportControl 集的引用,之后就可以直接使用代码,如下所示:
@Model.ReportWithPivot("", "ShopName", "SellingPrice", AggregateFunction.Sum, "ItemType", "ItemName")
请注意你的模型应该是 IEnumerable 或者仅从 IEnumerable 衍生而来。
如何工作
ReportWithPivot 是 IEnumerable 对象的延伸方法,使用 RowField, DataField, Aggregate 函数和 ColumnFields 作为参数并返回一个 HTML 表,其中数据根据指定参数进行枢轴定位。
public static HtmlString ReportWithPivot(this IEnumerable source, string cssClass, string rowField, string dataField, AggregateFunction aggregate, params string[] columnFields) where T
javascript
pivot
aspnetmvc
网格
相关源码推荐
微信小程序开发
0
0
暂无评分
基于vue的移动端图片裁剪压缩处理
0
0
暂无评分
数字城市前端经典面试题
0
0
暂无评分
3d建筑物大屏呈现
0
0
暂无评分
6666666
0
0
暂无评分
暂无评论