Posted 1 June 2020, 10:16 pm EST
Hi team,
For the Flex Tree grid, how can I select the previous selected row after itemsource reloaded? For instance, a button in a row tiggered itemsource changed, afterwards still locate the selected row?
Thanks.
Forums Home / Wijmo / General Discussion
Posted by: kun.leeing on 1 June 2020, 10:16 pm EST
Posted 1 June 2020, 10:16 pm EST
Hi team,
For the Flex Tree grid, how can I select the previous selected row after itemsource reloaded? For instance, a button in a row tiggered itemsource changed, afterwards still locate the selected row?
Thanks.
Posted 2 June 2020, 2:13 am EST
Hi Ken,
You will need to store the previous selected row in a variable in the itemsSourceChanging event and set it back again in the itemsSourceChanged event.
https://stackblitz.com/edit/angular-wyyidw
Regards,
Ashwin
Posted 3 June 2020, 9:30 pm EST
Thanks, Ashwin. Great example!