У меня есть сетка, заполненная ajax, пользователь вводит новые данные и перезванивает к методу ajax, который заполняет сетку, у меня проблема в том, что сетка является дублирующими данными, я пытался до обновления сетки заполнить пустая строчка, но не работает,
var gridColeccion = dijit.byId("colectionGrid");
var dummy = {items: []};
var newEventStoreColeccion = new dojo.data.ItemFileReadStore({clearOnClose:true,data:dummy});
newEventStoreColeccion.fetch();
gridColeccion.setStore(newEventStoreColeccion);
gridColeccion._refresh();
folderConsult(token); // This metod fill the grid again
// Это часть кода в folderConsult;
var datosColeccion = {
items: itemsColeccion
};
var gridColecccion = dijit.byId("colectionGrid");
nuevasColecciones= new dojo.data.ItemFileReadStore({clearOnClose:true,data: datosColeccion});
nuevasColecciones.fetch();
gridColecccion.setStore(nuevasColecciones);
gridColecccion._refresh();
Надеюсь, кто-нибудь может мне помочь, THX.