Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Ext.Net.Node implements non-existing listeners #1615
This is most likely a left over, and likely from Ext.NET 1! The tree panel's nodes are instances of Ext.data.TreeModel which, in turn, are an instance of Ext.data.Model decorated by Ext.data.NodeInterface, which do not implement the
Notwithstanding, the latter events are not properly set up to the "decorated" node, but stay within the Ext.data.Model definition, so the events never get fired. This part could be understood as an issue with Ext JS.
Then effectively, in the current state of Ext.NET, it is not possible to bind events directly to specific tree nodes. This is probably also a left over from the Ext JS side, from version 3 series.
So this issue could be seen as a two-part issue:
By design, listeners on nodes can't be defined as config options (before render), as the nodes are not really observable components, but data. Binding the documented events from Ext.data.NodeInterface.events is only supported at run time, for example, using
To specify listeners at definition-time, it is necessary to use the tree panel's "item*" events.
So, by design, listeners won't be supported in individual nodes; that's an Ext JS limitation.