Posted 6 August 2021, 7:14 am EST
Hi team,
We have a requirement where if a value is present on the cell which is not a part of the dropdown (collectionView) then if I click on the dropdown of the cell, the value will get cleared. Now if nothing is selected from the dropdown then the cell should revert back to it’s original value.
Example:-
- In the below snippet, Click on 2nd row subjects column with value as ‘French and Russia’.
- Since ‘French and Russia’ is not part of the 2nd row subjects cell dropdown it’s value is getting cleared using the method ‘isDropdownChanged’. (Refer lines : - 145 - 164).
- But Now, If I don’t select anything from the dropdown and click anywhere outside that cell then it’s value should be reverted to its original value i.e. French and Russia
- Also the subsubjects column is dependent on the subjects column so it is also getting cleared, So it should also be reverted back to it’s original value(i.e. before getting cleared).
https://stackblitz.com/edit/angular-fzmwup?file=src/app/app.component.ts
How can we achieve this functionality ?
Regards