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

igxTreeGrid Batch Update Implementation #2921

Closed
bazal4o opened this issue Nov 5, 2018 · 0 comments · Fixed by #3399
Closed

igxTreeGrid Batch Update Implementation #2921

bazal4o opened this issue Nov 5, 2018 · 0 comments · Fixed by #3399
Assignees
Labels
grid: tree-grid version: 6.2.x ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@bazal4o
Copy link
Contributor

bazal4o commented Nov 5, 2018

Description

Implement igxTreeGrid Batch update

  • igniteui-angular version:
  • browser:
@bazal4o bazal4o added 🛠️ status: in-development Issues and PRs with active development on them version: 6.2.x labels Nov 5, 2018
wnvko added a commit that referenced this issue Nov 7, 2018
By the help of transaction.path we are able to going trough all the changes
now and update the cloned data source without need of recursion.
wnvko added a commit that referenced this issue Nov 13, 2018
_useInUndo flag added to IgxTreeGrid. When cascading delete rows in flat data
set this flag to false and push add it this way in transaction. This allow undo
to skip this transactions.
wnvko added a commit that referenced this issue Nov 13, 2018
We are returning to startPending/endPending approach. This time on each
startPending we are pushing array of transactions to undo stack. If undo
gets called we remove the last array of transactions, splice the transactions
array, update the necessary states and push the array of transactions to redo
stack.
wnvko added a commit that referenced this issue Nov 13, 2018
By the help of transaction.path we are able to going trough all the changes
now and update the cloned data source without need of recursion.
wnvko added a commit that referenced this issue Nov 13, 2018
_useInUndo flag added to IgxTreeGrid. When cascading delete rows in flat data
set this flag to false and push add it this way in transaction. This allow undo
to skip this transactions.
wnvko added a commit that referenced this issue Nov 13, 2018
We are returning to startPending/endPending approach. This time on each
startPending we are pushing array of transactions to undo stack. If undo
gets called we remove the last array of transactions, splice the transactions
array, update the necessary states and push the array of transactions to redo
stack.
wnvko added a commit that referenced this issue Nov 13, 2018
If deleted transaction is added we are checking all current states. If any of
them is for row which is child of the deleted row we are updating its state.
wnvko added a commit that referenced this issue Nov 14, 2018


ADD, UPDATE, DELETE, UNDO, REDO and COMMIT should working now for both
flat and hierarchical data source
wnvko added a commit that referenced this issue Nov 14, 2018
By the help of transaction.path we are able to going trough all the changes
now and update the cloned data source without need of recursion.
wnvko added a commit that referenced this issue Nov 14, 2018
_useInUndo flag added to IgxTreeGrid. When cascading delete rows in flat data
set this flag to false and push add it this way in transaction. This allow undo
to skip this transactions.
wnvko added a commit that referenced this issue Nov 14, 2018
We are returning to startPending/endPending approach. This time on each
startPending we are pushing array of transactions to undo stack. If undo
gets called we remove the last array of transactions, splice the transactions
array, update the necessary states and push the array of transactions to redo
stack.
wnvko added a commit that referenced this issue Nov 14, 2018
By the help of transaction.path we are able to going trough all the changes
now and update the cloned data source without need of recursion.
wnvko added a commit that referenced this issue Nov 14, 2018
_useInUndo flag added to IgxTreeGrid. When cascading delete rows in flat data
set this flag to false and push add it this way in transaction. This allow undo
to skip this transactions.
wnvko added a commit that referenced this issue Nov 14, 2018
We are returning to startPending/endPending approach. This time on each
startPending we are pushing array of transactions to undo stack. If undo
gets called we remove the last array of transactions, splice the transactions
array, update the necessary states and push the array of transactions to redo
stack.
wnvko added a commit that referenced this issue Nov 14, 2018
If deleted transaction is added we are checking all current states. If any of
them is for row which is child of the deleted row we are updating its state.
wnvko added a commit that referenced this issue Nov 14, 2018


ADD, UPDATE, DELETE, UNDO, REDO and COMMIT should working now for both
flat and hierarchical data source
wnvko added a commit that referenced this issue Dec 6, 2018
wnvko added a commit that referenced this issue Dec 7, 2018
…2921

Refactor and deleteRowFromData - it should not use data with added rows.
Switch primaryKey and childDataKey parameters positions in commit function.
bazal4o added a commit that referenced this issue Dec 7, 2018
bazal4o added a commit that referenced this issue Dec 12, 2018
@wnvko wnvko added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🛠️ status: in-development Issues and PRs with active development on them labels Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid: tree-grid version: 6.2.x ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants