博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年6月28日

摘要: 前言数据显示的方式可以通过很多控件来实现,例 如服务端的原生GridView,第三方控件ComponentArt、Telerik等,客户端的flexgrid, extgrid, easyui, jqgrid等等。在这里我要讲解的是jqgrid,它也是我最近在项目中尝试用到的。我选择使用jqgrid主要是因为它基于jquery ui,在没有美工、契合系统主题并且快速完成系统的前提下,我选择了可以定制theme的jquery ui.这篇文章主要涉及到jquery ui和jqgrid的使用,我对每一步的讲解都尽量做到细化,结合详细的截图,以期能够通过step by step让初学者们熟悉一些原理和实 阅读全文

posted @ 2012-06-28 00:23 oilsun 阅读(591) 评论(0) 推荐(0) 编辑

摘要: Your problem is that you have chosen very exotic format of data. The default format representation of the local data is array of objects with named properties. Additional property in the array items are expected id. You use another format so you have to add localReader parameter which describes the 阅读全文

posted @ 2012-06-28 00:20 oilsun 阅读(1297) 评论(0) 推荐(0) 编辑

2012年6月27日

摘要: 年月日 星期<HTML><HEAD> <TITLE> New Document </TITLE><script language="JavaScript">//单个数字配零function getDouble(number){var numbers=["0","1","2","3","4","5","6","7","8","9& 阅读全文

posted @ 2012-06-27 21:43 oilsun 阅读(206) 评论(0) 推荐(0) 编辑

摘要: 1.Is there a way to know if a row inside the jqgrid is in edit mode?If you speak about rows in inline editing mode than you can vertify whether row (<tr> element) has attribute editable="1". The attribute will be set ba jqGrid for all rows which are in the editing mode. So the code c 阅读全文

posted @ 2012-06-27 15:05 oilsun 阅读(150) 评论(0) 推荐(0) 编辑

摘要: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#data_manipulationhttp://cnn237111.blog.51cto.com/2359144/770983jqGrid是个好东西,自己百度即可知道。先声明一下,jquery从1.4开始,对json数据格式要求很严格,不允许使用''单引号,必须使用""双引号。要获取json数据时,调用方式通常如下: $(function () { $("#list47").jqGrid({ url: 阅读全文

posted @ 2012-06-27 15:05 oilsun 阅读(2148) 评论(1) 推荐(0) 编辑

摘要: 一、主要API接口getGridParam、setGridParam: getGridParam方法: getGridParam("url"): 获取当前的AJAX的URL getGridParam("sortname"):排序的字段 getGridParam("sortorder"):排序的顺序 getGridParam("selrow"):得到选中行的ID getGridParam("page"):当前的页数 getGridParam("rowNum"):当前有多少行 g 阅读全文

posted @ 2012-06-27 10:47 oilsun 阅读(226) 评论(0) 推荐(0) 编辑

摘要: var ajsGridAction = { gridId:"gridId", //表格ID toListUrl:"../ajsGrid/toList", //列表页Url findUrl:"../ajsGrid/listAjax", //查询列表Url viewUrl:"../ajsGrid/viewAjax", //查看对象Url addUrl:"../ajsGrid/addAjax", //添加Url saveUrl:"../ajsGrid/saveAjax",//保存U 阅读全文

posted @ 2012-06-27 10:43 oilsun 阅读(504) 评论(0) 推荐(0) 编辑

2012年6月26日

摘要: c=parseInt(a)+parseInt(b) 阅读全文

posted @ 2012-06-26 07:11 oilsun 阅读(152) 评论(0) 推荐(0) 编辑

2012年6月24日

摘要: http://craigsworks.com/projects/qtip2/demos/http://code.drewwilson.com/entry/tiptip-jquery-pluginhttp://plugins.learningjquery.com/cluetip/demo/===========http://pop.seaofclouds.com/ 阅读全文

posted @ 2012-06-24 18:38 oilsun 阅读(186) 评论(0) 推荐(0) 编辑

摘要: http://developer.51cto.com/art/201202/319396.htm 阅读全文

posted @ 2012-06-24 11:12 oilsun 阅读(139) 评论(0) 推荐(0) 编辑