Ravi Khakhkhar
Ravi Khakhkhar

Reputation: 1964

Refresh Enhancedgrid with dojo.data.ObjectStore

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

Upvotes: 0

Views: 1279

Answers (2)

Richard Ayotte
Richard Ayotte

Reputation: 5080

Use the grid's setQuery method.

dijit.byId(gridId).setQuery(query);

Upvotes: 1

ejb_guy
ejb_guy

Reputation: 1125

Try calling

        dijit.byId(gridId).resize()

Upvotes: 1

Related Questions