Hello,
I am running into an issue with a TreeGrid I am using. When I edit pre-existing nodes, and then add new nodes to the tree, the edits I had just made disappear. They simply are deleted from the records. Is this expected behavior, or a framework bug?
I've worked around it by looping through the TreeGrid with the following code and storing all my edits into a map. Later, after adding new nodes to the TreeGrid, I restore the edits.
	
							
						
					I am running into an issue with a TreeGrid I am using. When I edit pre-existing nodes, and then add new nodes to the tree, the edits I had just made disappear. They simply are deleted from the records. Is this expected behavior, or a framework bug?
I've worked around it by looping through the TreeGrid with the following code and storing all my edits into a map. Later, after adding new nodes to the TreeGrid, I restore the edits.
Code:
	
	                int[] editRows = grid.getAllEditRows();
                Map<Integer,Record>rowsToRestore = new HashMap<Integer,Record>();
               
                for (Integer i : editRows) {
                    rowsToRestore.put(i, grid.getEditedRecord(i));
                }
Comment