AnsweredAssumed Answered

Clear Grid

Question asked by jay.kapalczynski on Apr 15, 2014
Latest reply on Apr 25, 2014 by jay.kapalczynski
I am populating my grid with this
Looking for a way to clear the grid on the start of another tool...

        var data =, function (entry, i) {           return {             NAME: entry.attributes.SITENAME,             REGION: entry.attributes.REGION,             WATERBODY: entry.attributes.WATERBODY,             TYPE: entry.attributes.TYPE,             ACCESSAREA: entry.attributes.ACCESSAREA,             LOCATION: entry.attributes.LOCATION           };         });;         grid.refresh();

I tried to create a new Grid and clear it but not having luck....any thoughts?

var newStore = new{data: {  identifier: "",  items: []}});  var grid = dijit.byId("grid");  grid.setStore(newStore); }