JEECG 行编辑例子源码
<t:datagrid name="jeecgrowList"checkbox="true" pagination="true" fitColumns="true"title="jeecg_rowedit" actionUrl="jeecgListDemoController.do?datagrid" idField="id"queryMode="group">
<t:dgCol title="id"field="id" hidden="true" queryMode="group"width="140"></t:dgCol>
<t:dgCol title="名称"field="name" query="true" extendParams="editor:'text'" width="150"></t:dgCol>
<t:dgCol title="年龄"field="age"query="true" extendParams="editor:'numberbox'" width="80"></t:dgCol>
<t:dgCol title="生日"field="birthday" formatter="yyyy-MM-dd"extendParams="editor:'datebox'" width="150"></t:dgCol>
<t:dgCol title="性别"field="sex"query="true" dictionary="sex" extendParams="editor:'combobox'" width="100"></t:dgCol>
<t:dgCol title="工资"field="salary"queryMode="group" extendParams="editor:'numberbox'" width="100"></t:dgCol>
<t:dgCol title="入职状态"field="status" query="true" dictionary="sf_yn" extendParams="editor:'combobox'" width="100"></t:dgCol>
<t:dgCol title="个人介绍"field="content"hidden="true" queryMode="group"width="500" extendParams="editor:'text'" ></t:dgCol>
<t:dgToolBar operationCode="add" title="录入" icon="icon-add"funname="addRow"></t:dgToolBar>
<t:dgToolBar operationCode="edit" title="编辑" icon="icon-edit"funname="editRow"></t:dgToolBar>
<t:dgToolBar operationCode="save" title="保存" icon="icon-save" url="jeecgListDemoController.do?saveRows" funname="saveData"></t:dgToolBar>
<t:dgToolBar operationCode="undo" title="取消编辑" icon="icon-undo" funname="reject"></t:dgToolBar>
<t:dgToolBar title="批量删除"icon="icon-remove" url="jeecgListDemoController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
</t:datagrid>具体源码下载见附件
页:
[1]