Hi,
I have a grid with all columns initalize properly on View, and have a button to change DataSource during runtime.
How do I keep the same columns when I update the datasource?
Snippetconst gridObj = document.getElementById("grid").ej2_instances[0];
var newDataSource = new ej.data.DataManager({
url: newUrl,
adaptor: new ej.data.UrlAdaptor()
});
gridObj.changeDataSource(newDataSource);