how to add css to selected row in treegrid GXT 3

前端 未结 3 578
孤独总比滥情好
孤独总比滥情好 2020-12-21 07:19

I created a treegrid using GXT 3.now iwant to change background color of selected row and also i want to change the background of root node(leaf row i.e Parent row).

3条回答
  •  一整个雨季
    2020-12-21 08:06

    I found out that you also can adjust CSS like this:

    grid.getCellFormatter().addStyleName(0, colNo - 1, MC_GWT.MC_STYLE_VERTICAL_ICON_HOLDER);
    

    It's a little easier i think :) Especially when you want to style the , f.e. alignment of icons inside of it. In my case i needed to display icons in a vertical row. So i needed to change the Cells display to 'block';

提交回复
热议问题