refreshColumns
refreshes the structure of DataGrid
function refreshColumns( // an array with new configurations for the columns config?: array): void
Example
Section titled “Example”dgrid.refreshColumns();
Details
Section titled “Details”When used without an argument, the method repaints the current grid structure.
Use it to refresh the structure of DataGrid after modifying some properties in its columns collection:
dgrid.config.columns[2].id = "newPrice";dgrid.config.columns[2].width = 500;dgrid.refreshColumns();
Or to change columns completely:
var config = [ {id:"col1", header:"First Name", width:150}, {id:"col2", header:"Last Name", width:150}];
dgrid.refreshColumns(config);
See also
Section titled “See also”Articles
API