Infinite Grid - Can you set height of grid at runtime?

Hi All,

Q1. I know I can set the height of the grid manually in pixels, but can you set it programmatically?

  1. I want to be able to set the grid height based on the screen resolution, how do you determine what the screen resolution is?

Thanks

Tony

By “screen resolution” you mean browser size (height and width), right? If so, using JavaScript you can get screen size and then set height/width on the element where the grid is placed in.

Thanks Mamede,

I am not sure how to do your second suggestion of “setting the height/width on the element where the grid is placed”?

I was hoping to be able to use either a % or use a variable in the infinite grid height field, but it seems only to accept a number representing pixels. If you place anything in that field that is not a number, it fills the whole page and more.