Hello,
We are developing an app and trying IGs and we found they are pretty useful, but yet a bit unmature;
Our goal is to refresh via AJAX some regions of a page, including a IG. 90% of the values of the page depends on what row (single-row) is selected on IG, so that when IG selection is changed the values are refreshed.
Frist we tried this:
var ig$ = apex.region("emp").widget();
ig$.interactiveGrid("getViews", ig$.interactiveGrid("getCurrentViewId")).refresh()
But it seemed that the data in the region was not refreshed with data in DB, so we put a DA that refreshes the IG.
Now, we found that when the IG is refreshed, the row that was selected is lost and no selection is done by default.
We saw this code
apex.region("emp").widget().interactiveGrid("setSelectedRecords", []);
here Interactive Grid Row Selector and we were wondering if it's possible to select a row of a IG via Javascript.
Thank you all,
Regards,