SMART datagrid v.1 > Classes > DisplayOptions

Back  Forward

DataLudi.DisplayOptions.fillWhenResized  property

If it is true, it will display most by scrolling the contents when the width or height of grid is changed. 

If it is the UI of which size of grid will be changed together when size of browser is changed, you can set this property as true to make it more natural for end users. 

Defaults to true.

Getter
function fillWhenResized(): Boolean
Setter
function setFillWhenResized(value: Boolean)
Code -1
    grid.setOptions({ 
        display: {
            fitWhenResized: false
        }
    });
Code -2
    grid.setDisplayOptions({
        fitWhenResized: true
    });
Code -3
    grid.displayOptions().setFitWhenResized(false);
See Also
GridBase.leftPos
GridBase.topIndex
fitStyle
Examples
Hello Grid
Grid Fitting