Change number of columns in grid, when use from Mobile [SOLVED]

Hello…
Is there any way to change the number of columns of a slide type grid at run-time, depending on some external factor? (for example, if you are running on a mobile)
Thanks a lot!

Hola…
Hay alguna forma de cambiar el numero de columnas de un grid tipo slide en run-time, dependiendo de algun factor externo? (por ejemplo, si se está corriendo en un celular)
Muchas gracias!

sc_block_display(Block_Name, on/off)

Dynamically determines the display fields of a specific block.

By default, all the blocks are displayed (“on” condition).

Ex. 1:
if ({type_customeri} == “personal”)
{
sc_block_display(company, off);
}
else
{
sc_block_display(personal, off);
}

Obs: In grids, this macro only works with “slide” orientation.

Hello…
Sorry, I expressed myself badly.
In the slide, each column is a complete block (with the data of an article and its photo, a catalog).
what you should do is change the value of columns per pages, which is in Grid Settings.
Thanks a lot!

Solved!
In Events, Header, assign

$this->nm_grid_slides_linha = NumberOfColumns;

1 Like