Dear friends, sorry to bother you again but we are breaking our heads with some updates we would like to reflect in our gridTree. First of all, I would like to show you how this looks so you have an idea of the result:
As you can see, I have a list of Locations/Projects etc then inside a list of employees, I have added a new selector to assign a team to such employee... as you can see the employee Guillermo can be in múltiple projects, in other words, it could be twice on startup, once in Pos/Prog, etc... When I add a new employee, the selector disappears (this is expected) as we don't have an employee Id.
Problem #1. In the cell that holds our team selector, we placed a condition that if the rowId does not starts with "Leaf" or Id is null, then return false, in other words, if any of these are missing should not display the team selector, and it works fine EXCEPT when we create a new employee position, at the beginning it does not have id, but after we choose an employee from the list, it shows the Id has changed but it does not display the selector... in other words it stays just an empty cell unless we refresh the selector is not shown... what could be the best approach here? please check our code below:
Problem #2 When changing the team for an existing employee, it works for the current row but as we have this employee in several other rows, what would be the best approach to notify that this person's team is not the same anymore and update the value on the selectors of this employee? as this could be in several other rows...
I was expecting to update the employeeStore (a store we created to hold employees info) but this doesn't seems to work, I also tried to call GRID.refreshColumn or GRID.refreshRows but nothing seems to work and I get an ugly error saying: "Maximum call stack size exceeded"... maybe not a good approach here...
Thank you for your kind help and guidance.