clears the existing grid state and loads data from an external file ( xml, json, jsarray, csv )
url | string | url to an external file |
call | function | after loading callback function, optional |
type | string | type of data (xml,csv,json,jsarray), optional, XML by default |
//clear grid and load new data
myTreeGrid.clearAndLoad("grid_new.xml");
//clear grid, load new data, execute doAfterRefresh() function after grid was loaded
myTreeGrid.clearAndLoad("grid_new.xml",doAfterRefresh);
//clear grid, load new data in csv format, execute doAfterRefresh() function after grid was loaded
myTreeGrid.clearAndLoad("grid_new.csv",doAfterRefresh,csv);
Back to top