Luis Devis Posted February 16, 2021 Share Posted February 16, 2021 Hola , mi problema es que a medida que voy añadiendo rows a mi unistringgrid la pantalla no cambia, necesito que el usuario pueda ver la última línea que ha insertado , puedo situar el row en la ultima línea pero en pantalla no se hace scroll y no puede verse esa ultima línea. ¿Alguna sugerencia? Gracias Link to comment Share on other sites More sharing options...
Luis Devis Posted February 23, 2021 Author Share Posted February 23, 2021 Solución en dos pasos : El tUniStringgrid se llama Grid 1º En Grid.ClientEvents.UniEvents -> AfterCreate Escribir function afterCreate(sender) { let me = sender; me.scrollToEnd = function() { me.ensureVisible(me.getStore().last()) } } 2º En el momento deseado (yo lo hago después de haber insertado un nuevo row al final) UniSession.Synchronize(); grid.JSInterface.JSCall('scrollToEnd', []); ¡¡ Así de simple !! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now