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

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) 编辑

摘要: 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 阅读(2151) 评论(1) 推荐(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) 编辑

摘要: 一、主要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 阅读(228) 评论(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) 编辑