相关疑难解决方法(0)

自定义jQGrid后期操作

我有一个很好的内联编辑示例jQGrid http://ok-soft-gmbh.com/jqGrid/TestSamle/Admin.htm 有两个自定义操作编辑和删除.

我想添加一个自定义内联Action,让我们称之为ToggleOnline.在此操作上,我想将网格的所有单元格发布到控制器.基本上它将是一种编辑操作,但它会为某些列设置一些默认值.

内联按钮添加如下:

{ name: 'act', index: 'act', width: 55, align: 'center', sortable: false, formatter: 'actions',
                        formatoptions: {
                            keys: true, // we want use [Enter] key to save the row and [Esc] to cancel editing.
                            delOptions: myDelOptions
                        }
                    }
Run Code Online (Sandbox Code Playgroud)

比添加自定义附加按钮我正在使用事件 loadComplete:

loadComplete: function(){ 
            debugger;
            var ids = jQuery("#Grid1").getDataIDs(); 
                for(var i=0;i<ids.length;i++){ 
                    var cl = ids[i];
                    custom = "<input style='height:22px;width:20px;' type='button' value='E' onclick=jQuery('#Grid1').editRow(" + cl + "); />";
                    jQuery("#Grid1").setRowData(ids[i], { act: custom }) 
                } 
            } 
Run Code Online (Sandbox Code Playgroud)

但自定义按钮根本没有出现.而且我还需要以某种方式发布行数据,我还需要指定自定义操作名称(操作)来处理服务器上的此操作.

jqgrid

6
推荐指数
1
解决办法
1万
查看次数

jqgrid EditActionIconsColumn事件

我在网格中有一个带有EditActionsIconsColumn的jqgrid,但我试图抓住Edit,Del和Submit上的click事件.谢谢

action editing button jqgrid

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

jqgrid ×2

action ×1

button ×1

editing ×1