91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

jqGrid表格底部匯總、合計行footerrow處理

發布時間:2020-06-15 02:44:51 來源:網絡 閱讀:1297 作者:nineteens 欄目:開發技術

  jqGrid提供了表格底部匯總、合計行功能,我們先看下user-guide關于jqGrid合計行都有哪些說明?然后再看個DEMO,看看jqGrid表格底部匯總、合計行到底如何實現。

  1、user-guide關于jqGrid合計行的說明

  1)表格配置:footerrow, boolean, 默認false

  If set to true this will place a footer table with one row below the gird records and above the pager. The number of columns equal those specified in colModel

  表格是否顯示底部合計行。

  2)表格配置:userDataOnFooter,boolean,默認false

  When set to true we directly place the user data array userData in the footer if the footerrow parameter is set to true. The rules are as follows: If the userData array contains a name which matches any name defined in colModel, then the value is placed in that column. If there are no such values nothing is placed. Note that if this option is used we use the current formatter options (if available) for that column. See footerData method.

  如果設為true,則userData可以用來填充匯總行。

  3)匯總行賦值:footerData([string action], [object data], [boolean format])

  This method gets or sets data on the grid footer row. When set data in the footer row, the data is formatted according to the formatter (if defined) in coModel. The method can be used if footerrow option is set to true.

  parameters

  string action - can be ‘get’ or ‘set’. The default is get. ‘get’ returns an object of type name:value, where the name is a name from colModel. This will return data from the footer. The other two options have no effect in this case. ‘set’ takes a data object and places the values in the footer The value is formatted according to the definition of the formatter in colModel - see next parameter. The object should be in name:value pair, where the name is the name from colModel

  object data - data to be set in the footer in name:value pair, where the name should correspond to the name of colModel in order to be set in the appropriate cell.

  boolean format - default is true. This instruct the method to use the formatter (if set in colModel) when new values are set. A value of false will disable the using of formatter

  2、一個DEMO,如何利用gridComplete事件進行表格數據匯總并賦值給合計行

  1)案例截圖

  

jqGrid表格底部匯總、合計行footerrow處理


  2)html代碼無錫好的×××醫院 http://www.zzch220.com/

  3)代碼說明:

  表格構建時,設置:footerrow: true

  gridComplete(jqGridGridComplete)事件處理,進行數據匯總并賦值給合計行

  gridComplete 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. Does not fire if datatype is a defined as function.

  4)獲取匯總行數據

  var row = $("#orders").jqGrid(“footerData”, “get”);


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

广东省| 武强县| 天台县| 临洮县| 集贤县| 涿鹿县| 舟曲县| 平乐县| 伊川县| 宜兰县| 新野县| 香河县| 武冈市| 泰顺县| 太白县| 孟津县| 元谋县| 富锦市| 恩平市| 咸阳市| 顺义区| 镶黄旗| 莱西市| 含山县| 新宁县| 洞口县| 新郑市| 顺昌县| 锡林郭勒盟| 香港| 奉化市| 大悟县| 保靖县| 新余市| 通化市| 湟中县| 蓬安县| 蓬莱市| 织金县| 崇礼县| 温泉县|