Results 1 to 2 of 2

Thread: How to differentiate when TreePanel itemappend events are fired?

  1. #1
    Sencha Premium User
    Join Date
    Jun 2012
    Posts
    48
    Answers
    1

    Default How to differentiate when TreePanel itemappend events are fired?

    The TreePanel's itemappend event is fired both when the underlying TreeStore is loaded and each node is added to the panel, and when a node is dragged and dropped.

    I want to fire a custom event in the itemappend listener, but only when a node is dropped - not after a store.load() itemappend.

    Is there an existing way to differentiate between what event fires the TreePanel's itemappend? Store.isLoading() is already false by the time itemappend is fired. I could set a variable based on what I'm trying to do (like when the selection changes), but that seems a little hacky.

  2. #2
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    418
    Answers
    42

    Default

    Could you listen to the TreeView's drop event instead?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •