#8 Expand/Collapse events for UI actions on TreeListView

v2.0
closed
nobody
New feature (4)
5
2014-04-25
2010-04-19
Matt Chambers
No

As discussed on the forum, this was a lacking feature in the TLV so I added it. It's a pretty simple change. I followed the existing TreeList style of events. All events pass the OLVListItem as an argument. The Before* events are cancellable. I made a design decision that these events are only triggered by UI behavior, not by external or internal calls to the Expand/Collapse methods. An alternative design might be to move the events into those methods. Another alternative might be to make that behavior configurable.

I put the events in TreeListView.cs instead of Events.cs because they are specific to that control. Since these are the only control-specific events, I didn't have a style to follow.

New events:
BeforeExpanding
AfterExpanding
BeforeCollapsing
AfterCollapsing

Discussion

  • Matt Chambers
    Matt Chambers
    2010-04-19

     
    Attachments
  • Phillip Piper
    Phillip Piper
    2014-04-25

    Added in v2.5

     
  • Phillip Piper
    Phillip Piper
    2014-04-25

    • status: open --> closed
    • Group: --> v2.0