- 注册时间
- 2016-3-14
- 最后登录
- 2021-1-25
- 阅读权限
- 10
- 积分
- 125
- 精华
- 0
- 帖子
- 13
|
由后台传到前台的JSON对象
data=[{field=className, allowSort=false, align=center, headerAlign=center, width=100px, header=班级},
{field=1, editor={allowInput=false, cls=mini-buttonedit, onbuttonclick=selectTeacher, type=buttonedit}, allowSort=false, displayField=teaName1, align=center, headerAlign=center, width=110px, header=英语},
{field=2, editor={allowInput=false, cls=mini-buttonedit, onbuttonclick=selectTeacher, type=buttonedit}, allowSort=false, displayField=teaName3, align=center, headerAlign=center, width=110px, header=数学},
{field=3, editor={allowInput=false, cls=mini-buttonedit, onbuttonclick=selectTeacher, type=buttonedit}, allowSort=false, displayField=teaName4, align=center, headerAlign=center, width=110px, header=语文}]
前台用grid.setColumns(data)方法生成DataGrid的Columns,但是生成的buttonedit的allowInput属性不生效,文本框中依旧可以输入,最好再能告诉下载JSON中DataGrid的属性都有哪些
|
|