I need to refresh the grid by explicitly calling dataBind in order to work around an issue. Unfortunately, the row becomes unselected after rebind. Therefore, I would like to remember the row before rebind so that I can set the row selected after rebind. Does anyone know how to do that and set the row selected after databind? Thanks you so much.
This works. thanks.
Hello aschoi ,
I am just checking have you been able to resolve your issue?
You can get the selected rows of the igGrid using the method selectedRows:
var variable = $(".selector").igGridSelection("selectedRows");
then you can restore the selection by manually selecting all of the rows:
$(".selector").igGridSelection("selectRow", 10);
For additional information on this functionality you can check the following link from our documentation:
https://www.igniteui.com/help/api/2019.1/ui.iggridselection
mentioned functionality is placed within the tab “Methods”.
If you need any additional assistance with implementing this functionality please do not hesitate to ask.