UI Builder Grid Container

nwilliams62
Tera Contributor

is there a way to make the number of rows/columns in a grid container variable?  I feel like I'm missing something but I don't see a data binding on that field?

1 ACCEPTED SOLUTION

Casper6060
Mega Sage

From what i know, this is not possible, but if you want to make a grid with dynamic rows, then get your data source set up, and add the data source to a repeater component, then add the grid inside your repeater and set the columns to what you need and rows to 1. then the rows will dynamic based on the amount of rows coming from your data source.

If you need a header row, i would say create a copy of your existing grid setup and move it above your repeater.

 

Hope this makes sense 🙂

View solution in original post

2 REPLIES 2

Casper6060
Mega Sage

From what i know, this is not possible, but if you want to make a grid with dynamic rows, then get your data source set up, and add the data source to a repeater component, then add the grid inside your repeater and set the columns to what you need and rows to 1. then the rows will dynamic based on the amount of rows coming from your data source.

If you need a header row, i would say create a copy of your existing grid setup and move it above your repeater.

 

Hope this makes sense 🙂

Yeah that works...I actually needed a variable number of rows and columns so I ended up just using a fixed width flexbox container to do the job with repeaters kind of like you said.