Official Content

The Load command and the Grid Load method are used within User defined events in Web Panels, SD Panels and Work With for Smart Devices objects in order to force the loading of a new line into a Grid control.

The Web User Experience property has to be set to "Smooth", so that the Load command and the Load method add a new line into the grid, without refreshing the whole grid in the process.

Scenario of use

For developing a messaging page, as explained in HowTo:Develop a messaging web page, we will need to guarantee that when a user adds a new comment, all other users who may be also editing the page will receive the first user's comments, without losing what is typed at their end.

Technically, the grid must not refresh as a whole when a Web Notification arrives and it is added to the comments grid.

In this case, the Load command adds a new line to the grid without refreshing the grid. So, if any other row is being edited it will be kept unchanged.

Note

Consider that in particular the Load command can be used within User defined events only if the object contains one grid. One the other hand, if the object contanis more than one grid, use the Grid Load method.






Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant