Webaction Scroll to inside Datagrid 2

Hi everyone, I am trying to fix the following issue. I have a Datagrid 2 with virtual scrolling. It is possible to add new Objects to the Datagrid. But, once over 20+ lines/items, the new objects are added but there is no focus on the new object. There is logic that the new object is automatically the selected one, so I tried to use the webaction Scroll to, with the target selector the (dynamic) class on the new (selected) row. After inspection, I can see that the class is on the element, but somehow the Javascript action doesn't find the item. Any recommendations? PS, I tried to focus on a static Image with the targeted class on it, outside the Datagrid, and that does work..
0 answers