- 注册时间
- 2013-8-13
- 最后登录
- 2017-4-17
- 阅读权限
- 10
- 积分
- 1519
- 精华
- 0
- 帖子
- 418
|
对于miniui的单元格里面我又装input控件,那再保存数据的时候,我该怎么保存呢 用miniui的保存方法,我只能把mini控件的改变保存但是不能保存我又插进去的input控件吧 function ondrawcell(e) {
if (e.field == "shijianduan") {
var moshiid = e.row.ScheduleID;
if (getnumbersbyid(moshiid) == e.row.shijiannumber) {
var tempDiv = "<table>";
// var times = getjsons(moshiid);
var times = [{ starttime: '13:00', endtime: '6:00' }, { starttime: '14:00', endtime: '6:00' }, { starttime: '15:00', endtime: '6:00'}]
var html = "";
for (var i = 0; i < times.length; i++) {
html += "<tr><td><input type='text' value='" + times[i].starttime + "'/></td><td><input type='text' value='" + times[i].endtime + "'/></td></tr>";
}
tempDiv += html;
tempDiv += "</table>"
e.cellHtml = tempDiv;
return;
}
|
|