SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.restoreColumns  method

If columnLayout is not null, it will restore the column layout which has been set when creating the grid. If parameter restoreSize is true, it will restore the width of columns to the values which have been set before the layout. Other properties will not be restored. 

function restoreColumns (restoreSize: Boolean);
Returns
Void
Parameters
restoreSize - Boolean. Defaults to false.
If it is true, it will restore the width of columns.
Code -1
    $('#restore').click(function () {
        grid.restoreColumns(true);
    });
See Also
columnLayout
setColumnLayout
restoreColumnLayout
linearizeColumns
ColumnLayout
Examples
Column Layouts