Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试过这个:
renderer : function( strValue, oMetaData, oRecord ) { var i; if( oRecord.data.leaf ) { for( i in this.items ) { this.items[i].disable(); } } }
但它禁用了整个列的操作,而不仅仅是叶子的特定记录。
我想this参考是问题所在,它似乎包含了错误的存档范围。看看渲染器参数,特别是元信息。
this