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.
我需要为嵌套的子行添加 cssClass。我可以为父行添加类,但如何添加嵌套的子行。
this.dataGrid.rows[i].cssClass
您需要为 FlexGrid 的 formatItem 事件添加事件处理程序,然后遍历所有行并设置它们的 cssClass 属性。
JS:
grid.formatItem.addHandler((s, e) => { s.rows.forEach(r => { r.cssClass = 'custom-back'; }) });
CSS:
.custom-back { background: rgb(18, 148, 148) !important; }