Event |
Parameters |
Description |
afterInsertRow |
rowid |
This event fires after every inserted row. |
beforeProcessing |
data, status, xhr |
This event fire before proccesing the data from the server. Note that the data is formatted depended on the value of the datatype parameter - i.e if the datatype is 'json' for example thedata is JavaScript object |
beforeRequest |
none |
This event fire before requesting any data. Also does not fire if datatype is function. If the event return false the request is not made to the server |
beforeSelectRow |
rowid, e |
This event fire when the user click on the row, but before select them. |
gridComplete |
none |
This fires after all the data is loaded into the grid and all other processes are complete. Also the event fires independent from the datatype parameter and after sorting paging and etc. |
loadBeforeSend |
xhr, |
A pre-callback to modify the XMLHttpRequest object (xhr) before it is sent. Use this to set custom headers etc. Returning false will cancel the request. |
loadComplete |
data |
This event is executed immediately after every server request. |
loadError |
xhr, |
A function to be called if the request fails. The function gets passed three arguments: The XMLHttpRequest object (xhr), a string describing the type of error (status) that occurred and an optional exception object (error), if one occurred. |
onCellSelect |
rowid, |
Fires when we click on particular cell in the grid. |
ondblClickRow |
rowid, |
Raised immediately after row was double clicked. |
onHeaderClick |
gridstate |
Fire after clicking to hide or show grid (hidegrid:true); |
onPaging |
pgButton |
This event fires after click on [page button] and before populating the data. Also works when the user enters a new page number in the page input box (and presses [Enter]) and when the number of requested records is changed via the select box. To this event we pass only one parameter pgButton See pager. |
onRightClickRow |
rowid, |
Raised immediately after row was right clicked. |
onSelectAll |
aRowids, |
This event fires when multiselect option is true and you click on the header checkbox. |
onSelectRow |
rowid, |
Raised immediately after row was clicked. |
onSortCol |
index, |
Raised immediately after sortable column was clicked and before sorting the data. |
resizeStart |
event, index |
Event which is called when we start resize a column. event is the event object, index is the index of the column in colModel. |
resizeStop |
newwidth, index |
Event which is called after the column is resized. newwidth is the is the new width of the column , index is the index of the column in colModel. |
serializeGridData |
postData |
If set this event can serialize the data passed to the ajax request. The function should return the serialized data. This event can be used when a custom data should be passed to the server - e.g - JSON string, XML string and etc. |
调用ajax的事件顺序如下:
1.beforeRequest
2.loadBeforeSend
3.serializeGridData
4.loadError (if a error from the request occur - the event from steps 5 till 7 do not execute. If there is no error the event 4. does not execute and we continue to with the step 5.)
5.beforeProcessing
6.gridComplete
7.loadComplete
相关推荐
JQuery插件 jqGrid常用属性说明
。
。
jqGrid案例,经典搜索,异步,里面包括添加、删除、修改等日常操作,此程序是我用codeIgnite(CI)框架程序,压缩包内还有数据库文件,下载下来直接修改数据库配置文件即可预览,功能很强大,是php程序,希望下载者注意
一般的,一个jqGrid的基本属性有一下几个常用的。 代码如下: $(“#id”).jqGrid({ url: “”, datatype: “local”, postData: { strJson: Data }, mtype: “post”, height: 45, width: 450, rowNum: rum, //每页的...
jqGrid表格数据修改删除代码是一款jQuery基于jqGrid表格插件制作项目名称序号表格数据操作。
很全面的UI框架,多种颜色,包括前后台,bootstrap,集成多种常用jquery插件,jqgrid datatable select2 ichecker 等
5.常用示例 邮件、短信、打印、电子签章等常用功能示例; 前后端使用技术: •1、前端技术 •JS框架:jquery-2.1.1、Bootstrap.js、JQuery UI •CSS框架:Bootstrap v3.3.4(稳定是后台,UI方面根据需求自己...
常用类封装,日志、缓存、验证、字典、文件、邮件、,Excel。等等,目前兼容浏览器(IE8+、Chrome、Firefox、360浏览器等) 8、适用范围:可以开发 OA、ERP、BPM、CRM、WMS、TMS、MIS、BI、电商平台后台、物流管理...
更多Spring Boot实战项目可以关注十三的另一个代码仓库 ,该仓库中主要是Spring Boot的入门学习教程以及一些常用的Spring Boot实战项目教程,包括Spring Boot使用的各种示例代码,同时也包括一些实战项目的项目源码...