在jQGrid的底部添加新行 [英] Add new row to bottom of jQGrid

查看:424
本文介绍了在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?

推荐答案

您应该使用position选项:您通常通过addParams选项指定的inline_editing#addrow"rel =" noreferrer> addRow : inline_editing#inlinenav"rel =" noreferrer> inlineNav :

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆