- 注册时间
- 2014-3-11
- 最后登录
- 2014-6-16
- 阅读权限
- 10
- 积分
- 219
- 精华
- 0
- 帖子
- 62
 
|
在DataGrid的单元格(type="comboboxcolumn")中,
有一个编辑器Editor(class="mini-combobox")
想要指定它的下拉内容部分为readOnly(假设下拉的内容data="LessionRange")
LessionRange = [
{ id: 1, text: '第一节' },
{ id: 2, text: '第二节' },
{ id: 3, text: '第三节' },
{ id: 4, text: '第四节' },
{ id: 5, text: '第五节' },
{ id: 6, text: '第六节' },
{ id: 7, text: '第七节' },
{ id: 8, text: '第八节' },
];
希望id为1,2,3,4的为readOnly
现在对DataGrid已经获取了事件oncellendedit="OnCellEndEdit"
那么在function OnCellEndEdit( e ){
}
中,我该如何实现?
|
|