Extjs之EditorGridPanel的beforeedit事件参数
生活随笔
收集整理的這篇文章主要介紹了
Extjs之EditorGridPanel的beforeedit事件参数
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
beforeedit : ( Object e )
只有一個(gè)事件(edit event)參數(shù),但這個(gè)參數(shù)內(nèi)容很豐富,可以滿足很多需求。
參數(shù)分別如下:
grid – 表格本身
record – 你要編輯的那一行記錄
field – 你編輯的列名
value – 你編輯的值
row – 行號
column – 列號
cancel – 設(shè)這個(gè)為true或者return false可以取消編輯(不顯示那個(gè)編輯框)
其次,具體寫法可參考:
var grid=new Ext.grid.EditorGridPanel({ title:'測試列表', //el:'grid', renderTo:'grid', width:800, height:300, autoScroll:true, store:ds, cm:cm, sm:sm, listeners:{ 'beforeedit':function(o){ var createBarcodeType = o.record.get('createBarcodeType'); if(createBarcodeType == '1') return true; else return false; } } });
總結(jié)
以上是生活随笔為你收集整理的Extjs之EditorGridPanel的beforeedit事件参数的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql用身份证号判断男女_如何根据身
- 下一篇: 梦幻群侠传5帮派修炼_梦幻群侠传5手游下