如何加载 SD 网格并自动滚动到 Genexus 15 上的最后一条记录?

How to load a SD Grid and scroll automatically to last record on Genexus 15?

我有一个 SD 网格来显示从其他用户收到的消息(一个简单的聊天应用程序),每次我打开这个面板时,都会出现第一条记录,我必须手动滚动才能到达最后一条消息。

有没有办法自动转到此网格上的最后一条记录?

我知道网格上有一个 Select() 方法,但这不能用于刷新事件,只能用于用户事件。

我正在使用 GX15 U6

谢谢, 罗赫里奥·阿罗塞梅纳

是的,可以使用 Inverse Loading 属性

This property is available for grids in the Smart Devices generator.

By setting it to True (its default value is False), the developer will be able to load the grid in reverse direction (i.e. the Common Grid will be loaded from bottom to top, and the Horizontal Grid will be loaded from right to left).

Example of use The canonical use case of inverse loading on a grid is that of a chat messaging system. What are its characteristics? It is loaded from bottom to top, pagination is performed with a swipe-down gesture, and when the user refreshes it the first page will be displayed in the lower section.