Extjs之EditorGridPanel的beforeedit事件参数
生活随笔
收集整理的這篇文章主要介紹了
Extjs之EditorGridPanel的beforeedit事件参数
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
beforeedit : ( Object e )
只有一個事件(edit event)參數,但這個參數內容很豐富,可以滿足很多需求。
參數分別如下:
grid – 表格本身
record – 你要編輯的那一行記錄
field – 你編輯的列名
value – 你編輯的值
row – 行號
column – 列號
cancel – 設這個為true或者return false可以取消編輯(不顯示那個編輯框)
其次,具體寫法可參考:
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; } } });
總結
以上是生活随笔為你收集整理的Extjs之EditorGridPanel的beforeedit事件参数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql用身份证号判断男女_如何根据身
- 下一篇: 梦幻群侠传5帮派修炼_梦幻群侠传5手游下