Hi John,
Query: When datasource is changed skip of the previous state remains and doesn't get reset.
By default, when dynamically assign data source it automatically refresh the Grid. If the dynamic data source does not contain the same field (initial data then it show blank row) then we suggest you to define the column property before changing the data source as follows.
Please check the below code example for more information.
// dynamically apply data source for Grid
var grid = document.getElementsByClassName("e-grid")[0].ej2_instances[0];
// you can either define the column as below or put [] so it considered as auto generated column
grid.columns=[{field:'OrderID1'}];
grid.dataSource = data2;
|
Regards,
Hariharan