Tag: inline editing

通过内联编辑在Struts2 jQuery Grid中编辑多行

The struts2-jQuery grid offers a wide variety of edit features. But for one of our requirements, the Out-of-the-Box ‘Edit’ feature in this grid is not suitable. we want to customize it as follows.. 我们的要求是 : 用户应该能够一次编辑多行 – 根据默认的开箱即用实现,每行编辑后,用户必须执行保存操作(通过按Enter键或单击“保存”按钮),然后再继续编辑下一行 使用TAB在行之间移动进行编辑 “批量/批量保存”操作,可以将所有已编辑的行数据发送到我的操作,然后我们可以执行批量保存数据库操作 我们的方法 : 自定义1 :在所有行的第一列上显示“编辑/取消”按钮(每行没有保存按钮)。 单击“编辑”后,特定行将变为可编辑状态 自定义4 :在网格工具栏中添加一个新的“批量保存”图像按钮 自定义5 :单击“批量保存”,收集所有已编辑的行数据(以及ID)并在Action中作为数组接收它以执行“批量更新”数据库操作 We got our inspiration from the […]