在jQGrid的底部添加新行 [英] Add new row to bottom of jQGrid
问题描述
我有了一个内联编辑的jqgrid,并有可能添加新行.
I got a jqgrid with inline edit, and the possibility to add new rows.
目前,新行以编辑"模式显示在网格顶部.我想要的是将新行添加到网格的底部,因为我的添加新行"按钮位于自定义的bottompager中...
At the moment the new rows are displayed in "edit" mode at the top of the grid. What I want is to add the new row to the bottom of the grid since my "Add new row" button is in a custom bottompager...
有人知道这是否可能吗?
Anyone know if this is possible?
推荐答案
您应该使用
You should use position
option of addRow which you typically specify by addParams
option of inlineNav:
$("#grid").jqGrid("inlineNav", "#pager", {addParams: {position: "last"}});
有关相应的演示,请参见此处.
See here for the corresponding demo.
这篇关于在jQGrid的底部添加新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!