refreshes the structure of DataTable
config | array | array with new configurations for the columns |
dtable.refreshColumns();
When used without an argument, the method redraws currect grid structure.
You can use this method to refresh structure of datatable after modifying some properties of columns collection.
dtable.config.columns[2].id = "newPrice";
dtable.config.columns[2].width = 500;
dtable.refreshColumns();
Or, with new config provided, set a completely different columns.
var config = [
{id:"col1", header:"First Name", width:150},
{id:"col2", header:"Last Name", width:150}
];
dtable.refreshColumns(config);
Back to top