Hello,
Love the control(s) and am enjoying learning to approach the listview from a totally different angle.
I am using TreeListView and some of the items have children rows (not all).
There are some conditions, under which I would like a row which has children to appear expanded as it is added. My first approach was to add some type of expand() command in FormatRow(), but the row can't expand until the children nodes are added, and those children don't call FormatRow until they are already visible/expanded.
As there does not seem to be any true "RowHasBeenAdded" event, is there another location that would be ideal for for performing this row expand(). To be clear, I would like to expand a row immediately after it and it's child rows are added, based upon the contents of the data model used by the parent-most row.
An example would be:
Message
Message
Message
-ErrorMessage
ErrorDetails
More Error Details
Message
-ErrorMessage
ErrorDetails
More Error Details
Message
Each time an ErrorMessage (which has child rows Error Details and MoreErrorDetails) is added, that ErrorMessage row is expanded.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The TOLV doesn't really have a concept of "adding" a row (except at the top level of adding a new root). There is only expanding, and children getting.
Could you put the "auto-expand" logic into your CanExpandGetter?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Love the control(s) and am enjoying learning to approach the listview from a totally different angle.
I am using TreeListView and some of the items have children rows (not all).
There are some conditions, under which I would like a row which has children to appear expanded as it is added. My first approach was to add some type of expand() command in FormatRow(), but the row can't expand until the children nodes are added, and those children don't call FormatRow until they are already visible/expanded.
As there does not seem to be any true "RowHasBeenAdded" event, is there another location that would be ideal for for performing this row expand(). To be clear, I would like to expand a row immediately after it and it's child rows are added, based upon the contents of the data model used by the parent-most row.
An example would be:
Message
Message
Message
-ErrorMessage
ErrorDetails
More Error Details
Message
-ErrorMessage
ErrorDetails
More Error Details
Message
Each time an ErrorMessage (which has child rows Error Details and MoreErrorDetails) is added, that ErrorMessage row is expanded.
The TOLV doesn't really have a concept of "adding" a row (except at the top level of adding a new root). There is only expanding, and children getting.
Could you put the "auto-expand" logic into your
CanExpandGetter?