Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant