Refresh Enhancedgrid with dojo.data.ObjectStore
-
11-06-2021 - |
Frage
I'm using 1.7.2 When I add an item to objectstore I write
dataStore.newItem(data);
Then I tried saving dataStore.save()
and then dijit.byId(gridId)._refresh()
But browser hangs up.
I also tried re-assigning same store again to grid after adding item. Still no success
Lösung
Try calling
dijit.byId(gridId).resize()
Andere Tipps
Use the grid's setQuery method.
dijit.byId(gridId).setQuery(query);
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow