Hi,
I have a self-referencing data grid with items that can have multiple levels of child items. With the row numering enabled, I would like to reflect the item's level within the numbering. For example:
1 parent
1.1 child1
1.2 child2
1.2.1child2 child1
And so forth...
Is this possible?
Thanks
Yohan
Hi Yohan,
I've attached a sample that demonstrates how to change the label of the row selector.
I hope that this will help you.
Hi Nikolay,
Thanks for the example! Great work.
One thing that bothers me though... when you reordre items by filtering or sorting, item that was previously 1.1 changes to something else. Long story short, the item numbering isn't attached to that specific item but to the item's position.
Is there a way to change this?
Thanks again,
Found it out myself! Sorry for my lazyness ;)
Simply, you just have to change the RowNumberingConverter to use the row data instead of the row index. The data has to contain an Id for each element.
Cheers,