Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

ComponentColumn 'bind' event is triggered twice #1859

Open
fabriciomurta opened this issue May 11, 2021 · 0 comments
Open

ComponentColumn 'bind' event is triggered twice #1859

fabriciomurta opened this issue May 11, 2021 · 0 comments

Comments

@fabriciomurta
Copy link
Contributor

Found: 5.3.0
Ext.NET Forums' thread: Bind event with component column

The Ext.grid.column.ComponentColumn component calls its insertComponentForRecord() method from both insertComponents() and itemAdded() methods.

When adding the first record in a grid, Ext JS code implies a refresh() when a row is inserted in the grid but, when the delayed refresh triggers, the item add event from Ext.NET's client-side implementation will still carry on as it would if no refresh was triggered. This in turn makes the insertComponentForRecord() call to trigger both from the usual and immediate itemAdded() and timed insertComponents() methods.

It would probably be best to interrupt the usual event whenever the first element is being added to the grid and let the event thru from the refresh cycle, that is implied from Ext JS primary code and probably avoids other general grid issues once first element is added to grid's view.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant