I have an AdvancedDataGrid structured as a tree. Since the non-leaf nodes have an arrow to open/close them (I have no icons), their labels start just after the arrow, and the leaf nodes in the same level are indented to be aligned to them. I want to cancel that indentation so the leaf nodes will start from the beginning of the column. I tried to set the indentation to 0, but it doesn't have any effect. Does anybody know how to do that, if at all possible? Thanks.
Asked
Active
Viewed 520 times
3 Answers
2
there is no need to use a custom renderer for that. Just set the displayDisclosureIcon
property of AdvancedDatagrid
to false.

Andrew Barber
- 39,603
- 20
- 94
- 123

Alejandro Ramiro
- 21
- 2
0
I think you can override the AdvancedDataGridItemRenderer or you can replace it with your own renderere. However, the ADG renderers take care of a lot of things automatically, so approach this with caution.

Amy Blankenship
- 6,485
- 2
- 22
- 45
-
It's actually the AdvancedDataGridGroupItemRenderer. – user940016 Jun 15 '12 at 13:43
-1
So as I said in my comment, I used AdvancedDataGridGroupItemRenderer. I created a subclass of it and overrode updateDisplayList, in which I set the dimensions of the disclosureIcon field to 0. That did the trick.

user940016
- 2,878
- 7
- 35
- 56