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.
我有一个网格,其中每行上的一个按钮在单击时删除该行(带有确认),但是当单击该按钮时,该行也被选中,一起执行 onRowClick(..) 方法中的操作。
我怎样才能让按钮单击它不会导致选择行项目?
您的按钮的点击处理程序应该调用DomEvent.stopEvent. 文档(2.2.4)在这里:http ://www.sencha.com/gxtdocs/#com.extjs.gxt.ui.client.event.DomEvent-stopEvent%5B0%5D
DomEvent.stopEvent