ASP.NET MVC and jqGrid 学习笔记 2-如何从本地获得数据
上回说到jqgrid的基本配置,同时演示了显示数据的一种方法——datatype: "local"。这种方法是从本地获取的,确切地说是在前端页面的javascript里写的硬编码。
本回说到的也是一种硬编码,只不过是在后台的Controller里写的,也是一种快速演示的方法,我们用ArrayList来填充数据。同时,jqgrid里要使用url参数以指定是从哪个action获得数据。
View:
@{
ViewBag.Title = "GetDataFromLocal";
} <h2>GetDataFromLocal</h2> <script type="text/javascript">
$(function () {
jQuery("#grid").jqGrid({
10 url: "/Home/GetData",
11 datatype: "json",
mtype:"get",
colNames: ['Inv No', 'Date', 'Client'],
colModel: [
{ name: 'id', index: 'id', width: 60, sorttype: "int" },
{ name: 'invdate', index: 'invdate', width: 90, sorttype: "date" },
{ name: 'name', index: 'name', width: 100 }
],
caption: "jqGrid data",
rowNum: 5,
pager: "pager",
viewrecords: true,
width: 300, height: "auto",
jsonReader:{repeatitems: false}
});
});
</script> <table id="grid"></table>
<div id="pager"></div>
Controller:
public ActionResult GetDataFromLocal()
{
return View();
} public JsonResult GetData(int? page, int? rows)
{ //把数据放到一个动态数组里
ArrayList list = new ArrayList();
list.Add(new { id = "", invdate = "2007-10-01", name = "test" });
list.Add(new { id = "", invdate = "2007-10-02", name = "test" });
list.Add(new { id = "", invdate = "2007-10-02", name = "test" });
list.Add(new { id = "", invdate = "2007-10-02", name = "test" });
list.Add(new { id = "", invdate = "2007-10-02", name = "test" });
list.Add(new { id = "", invdate = "2007-10-02", name = "test" });
list.Add(new { id = "", invdate = "2007-10-02", name = "test" });
list.Add(new { id = "", invdate = "2007-10-02", name = "test" });
list.Add(new { id = "", invdate = "2007-10-02", name = "test" });
list.Add(new { id = "", invdate = "2007-10-02", name = "test" });
list.Add(new { id = "", invdate = "2007-10-02", name = "test" });
list.Add(new { id = "", invdate = "2007-10-02", name = "test" }); var myData = list.ToArray();//便于下面用linq分页 //jqgrid的参数
int pageNum = page.HasValue ? page.Value : ;//当前显示哪一页
int pageSize = rows.HasValue ? rows.Value : ; //每一页显示多少条记录
int totalRecords = list.Count;//总记录数
int totalPages = (int)Math.Ceiling((float)totalRecords / (float)pageSize);//总页数
var jsonData = new
{
total = totalPages,
page = pageNum,
records = totalRecords,
rows = myData.Skip((pageNum - ) * pageSize).Take(pageSize)//分页
}; return Json(jsonData, JsonRequestBehavior.AllowGet);
}
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbMAAAEkCAIAAAAq7EgrAAAgAElEQVR4nO2d+VcUV97/+Vvo85g8Hp9JHE2emGSMmYjOxKCJmVbGJS4gxqAR3GIW95AvDJlJDsavGR1ZgkYFlKWVRVuJAQVEWWwUUBqEhmZtlmZtGr/1/aF6qa66VV3VNHVZ3q/zOR666t5bdT9d9eLWIjege3C8a8A+SdE9OI5AIBDTLgI6+sfa+8ba+8fa+mx+jPb+sfa+sY7+sU6rvWtgHIFAIKZRBJh7R1stI62WkZbuYT8G26a5d7Sj3w45IhCI6RUBDe395U/N92ua/R7lT81Gc19r72h7/1jnwDjCX9HQYb3z8Nn1wioEAjFJEXDvkbGjZ8A2/v/8Hu2WgXtVDS3dw229NvayGuGXuHX/ibmzlwEATBoBBQ/qhsdeDNn8H8NjLwoe1Jm6h819tvb+sQ6rHeGXyCx4QPuwAWCGE1DwoG4ytMhGwYO65q4h9oKaulBmTMCMAEw2AQUP6gZtL+TH0NiLIdmFCx7UNXUNtfSOtvWPtVvt8qPDau8YUFDev9FhtXcO2DsmreUJNp4BMwIwyQQUlNUNjL6QE4O2Fy0dPVFffZuSmj1ok1WloKyuqXOopWe0rW+svd8uMzqs9so6U+5v9xvb+zuscmv5EMJbeOygrL1vdPdX33b6e9MdVnun1b7ncMyewzHstnxrJ+O2lBmHh4cfP358+/ZtnU6n0+lu3779+PHj4eFh1Q4pAGYAAbfL6qyjL7zGgO2FqaNnxZrN89/+69zX30tJyx6wea91u6zueeeQqWfU3DfW1m+XE+399qpn5v/8qku8fO2X9NyG9v52q6yKioI14JmUq6vWhwf+4U3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K6HS64uJiaJE6ZDMCAMBsBmYEAAA+MCMAAPCBGQEAgA/MCAAAfP4/lTHN4g7GZuwAAAAASUVORK5CYII=" alt="" />
--End--
ASP.NET MVC and jqGrid 学习笔记 2-如何从本地获得数据的更多相关文章
- ASP.NET MVC and jqGrid 学习笔记 3-如何从数据库获得数据
实际应用中,大部分都是从数据库里获得数据,所以先建立一个数据库,Database first 或者Code first都可以,这里用Code first. 一.Model public class M ...
- ASP.NET MVC and jqGrid 学习笔记 6-增删改操作
程序结构: Member.cs CRUD.cshtml CRUD.js HomeController 一.Model public class Member { [Key] public int No ...
- ASP.NET MVC and jqGrid 学习笔记 1-基本配置
新建一个mvc项目后
- ASP.NET MVC and jqGrid 学习笔记 5-添加数据
据介绍,jqgrid有3种编辑数据的方式: Cell Editing 只允许修改某一个单元格内容 Inline Editing 允许在jqGrid中直接修改某一行的数据 Form Editing 弹出 ...
- ASP.NET MVC and jqGrid 学习笔记 4-排序
排序(Sorting)分为两种:客户端排序和服务端排序 客户端排序的意思是把数据从数据库里一次性全部提取出来,然后在客户端进行排序,以后每次点击标题进行排序时,就不会给服务端传递请求了.这个“一次性” ...
- ASP.Net MVC开发基础学习笔记(8):新建数据页面
前言 前面解说了怎样创建一个查询页面并给查询页面加入排序.搜索及分页功能.今天我们来讲讲怎样向这个列表加入数据. 解说的顺序将依照加入数据的步骤的时间顺序来进行,方便大家理清逻辑关系. 本节将涉 ...
- ASP.NET MVC Web API 学习笔记---第一个Web API程序
http://www.cnblogs.com/qingyuan/archive/2012/10/12/2720824.html GetListAll /api/Contact GetListBySex ...
- 【jqGrid for ASP.NET MVC Documentation】.学习笔记.4.性能
1 HTML / ViewState 大小 1.1 HTML 大小 jqGrid for ASP.NET MVC 使用最佳的客户端渲染,意味着 HTML gird 的 尺寸是最小的.事实上,只有 gr ...
- 【jqGrid for ASP.NET MVC Documentation】.学习笔记.2.jqGrid Model-View-Controller 分离
1 基本 分离代码 和 描述 ,在ASP.NET MVC 应用程序中是非常重要的.因此,jqGrid 的 mvc 模式使用一个共同的网格安装设置,包括 Model ,Controller 和 View ...
随机推荐
- Hadoop在百度的应用
百度作为全球最大的中文搜索引擎公司,提供基于搜索引擎的各种产品,包括以网络搜索为主的功能性搜索:以贴吧为主的社区搜索:针对区域.行业的垂直搜索.MP3音乐搜索,以及百科等,几乎覆盖了中文网络世界中所有 ...
- Fast Intro To Java Programming (2)
Java局部变量 局部变量声明在方法.构造方法或者语句块中: 局部变量在方法.构造方法.或者语句块被执行的时候创建,当它们执行完成后,变量将会被销毁: 访问修饰符不能用于局部变量: 局部变量只在声明它 ...
- BestCoder Round #85
sum Accepts: 640 Submissions: 1744 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/13107 ...
- leetcode@ [310] Minimum Height Trees
For a undirected graph with tree characteristics, we can choose any node as the root. The result gra ...
- Spark SQL概念学习系列之如何使用 Spark SQL(六)
val sqlContext = new org.apache.spark.sql.SQLContext(sc) // 在这里引入 sqlContext 下所有的方法就可以直接用 sql 方法进行查询 ...
- overflow,white-space,text-overflow组合技,省略号!
这是一个很简单的组合技,灵活应用省略号.
- C++中#include包含头文件带 .h 和不带 .h 的区别
C++中#include包含头文件带 .h 和不带 .h 的区别? 如 #include <iostream> 和 #include <iostream.h> 包含的东西有哪些 ...
- HDU 2647 Reward (拓扑排序)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2647 题意是给你n点m条有向边,叶子点(出度为0)上的值为888,父亲点为888+1,依次计算... ...
- STM32实验非正式报告之DMA
前言 DMA即直接内存存取.我理解它就是一个“交通部长”抑或是一个“搬运工”,协助CPU存储或读取数据.既然它的主要工作就是“搬运”数据,服务对象自然就是内存(不太严格的说法吧,STM32中Flash ...
- vsftpd 权限设置
vsftpd 虚拟用户 多用户不同权限 2010-06-27 00:54:20| 分类: linux大杂绘|举报|字号 订阅 1.需要建立一个用户,这个用户是linux系统的本地用户,各ft ...