上面是效果图,下面是代码
miniUI,dateagrid表格代码
BX.aspx界面
<div id="datagrid1" class="mini-datagrid" style="width: 98%; height: 100%;" url="JobMethod.ashx?Method=EBind" showpager="false" pagesize="500"
allowcelledit="true" allowcellselect="true" editnextonenterkey="true" editnextrowcell="true" oncellbeginedit="OnCellBeginEdit" oncellcommitedit="OnCellCommitEdit"
allowsortcolumn="false" idfield="cinvcode" showsummaryrow="true" ondrawsummarycell="onDrawSummaryCell" multiselect="true">
<div property="columns">
<div type="indexcolumn"></div>
<div type="checkcolumn"></div>
<div field="cinvcode" width="100" renderer="onGenderRenderer" headeralign="center">
存货编码
<input property="editor" class="mini-buttonedit" onbuttonclick="onCEdit" style="width: 100%;" />
</div>
<div field="cinvname" width="100" allowsort="true">
存货名称
<input property="editor" class="mini-textbox" style="width: 100%;" />
</div>
<div field="cinvstd" width="100" allowsort="true">
规格型号
<input property="editor" class="mini-textbox" style="width: 100%;" />
</div>
<div field="iquantity" width="100" headeralign="center" summarytype="sum">
数量
<input property="editor" class="mini-spinner" allowLimitValue="false" style="width: 100%;" />
</div>
<div field="iprice" width="100" headeralign="center">
单价
<input property="editor" class="mini-spinner" allowLimitValue="false" style="width: 100%;" />
</div>
<div field="imoney" width="100" headeralign="center">
金额
<input property="editor" class="mini-textbox" style="width: 100%;" />
</div>
</div>
</div>
<script>
mini.parse();
var grid