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

随笔分类 -  JQGrid

摘要:if you want hurry, test$(".ui-jqgrid-titlebar").hide();or if you have multiple grids, then only hide titlebar of $("#grid"), then do$("#gview_grid > .ui-jqgrid-titlebar").hide() 阅读全文

posted @ 2012-09-03 14:29 oilsun 阅读(1081) 评论(0) 推荐(0)

摘要:Java代码 <script>jQuery("#grid_id").jqGrid({...colModel:[{name:'recommendation',index:'recommendation',width:100,align:"center",editable:true,formatter:'select',editoptions:{value:'0:未推荐;1:已推荐'}}...]...});</script>将数据库记录为0的格式化为“未推荐”, 记录为1 阅读全文

posted @ 2012-09-03 14:01 oilsun 阅读(199) 评论(0) 推荐(0)

摘要://=========$(window).resize(function(){ $("#confTable").setGridWidth($(this).width()*.95); });原问题代码:??0 down vote favorite1I have a jqGrid at my web page. I have a resizing problem. When I restore down my web page, all the elements at my page resizes automatically however my jqGrid table d 阅读全文

posted @ 2012-09-03 14:00 oilsun 阅读(367) 评论(0) 推荐(0)

摘要:1 down vote acceptedThere are some small problems which follow to the problem.The first problem. You should move the lines where you call navGrid and gridResize inside of success handler. So the navigator and the resizing element of the grid will be created after ther grid will be created.You uses r 阅读全文

posted @ 2012-09-03 13:57 oilsun 阅读(329) 评论(0) 推荐(0)

摘要://返回CELL=[]的时候,提示 <script type="text/javascript"> //<![CDATA[ $(document).ready(function () { var grid = $('#oversight-sample'); var pages = []; // not as {}; var emptyMsgDiv = $('<div>No URLs have been loaded for evaluation.</div>'); grid.jqGrid... 阅读全文

posted @ 2012-09-03 13:55 oilsun 阅读(145) 评论(0) 推荐(0)

摘要:http://stackoverflow.com/questions/5092571/how-to-make-cell-editable-dynamically-in-jqgrid 阅读全文

posted @ 2012-07-01 00:39 oilsun 阅读(200) 评论(0) 推荐(0)

摘要:jqgrid是基于jquery的列表组件,还包括很多优秀的 其他扩展功能,使用起来也比较方便,起官方wiki,读起来也还好,下面,对其初始化数据的方法,需要用到的参数,作一个归纳,总结和说明。我也是使用 中,积累下来的,多多少少其他网站的也看了一些,不过我这个总结,我想没有任何一个中文网站,比我们的更全,更详细了常用参数:Java代码 $('#'+tableId).jqGrid({datatype:datatype,//数据类型treedatatype:datatype,data:localdata,//datatype==local时//datastr:xx,//dataty 阅读全文

posted @ 2012-06-28 00:25 oilsun 阅读(767) 评论(0) 推荐(0)

摘要:http://www.cnblogs.com/sharpxiajun/archive/2011/10/30/2229003.htmljava笔记:自己动手写javaEE框架(八)--为jqgrid换换皮肤然后加到我的框架里 今天让 我倒腾半天的居然不是写我的javaEE框架,而是更换jqgrid的皮肤。我是相当的讨厌jqgrid的默认皮肤,它总让我想起一直想学而都没学过的 EXTJS,看多了那种淡蓝色的皮肤太多了绝对视觉疲劳,所以这篇博文就从jqgrid换肤讲起吧,这个过程在网络上找到的资料比较少,因此我今天的博文 还是很有实用价值的。不废话了,下面开始吧! 首先我们在浏览器地址栏里填入地.. 阅读全文

posted @ 2012-06-28 00:24 oilsun 阅读(576) 评论(0) 推荐(0)

摘要:前言数据显示的方式可以通过很多控件来实现,例 如服务端的原生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 阅读(607) 评论(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 阅读(1324) 评论(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 阅读(153) 评论(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 阅读(2184) 评论(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 阅读(237) 评论(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 阅读(509) 评论(0) 推荐(0)