Tag Archives: dojo

Refreshing a dojo datagrid json store

[code]
var customerGrid = new dojox.grid.DataGrid({
query: { customer_id: ‘*’ },
store: customerJsonStore,
structure: layout,
queryOptions: {ignoreCase: true},
rowsPerPage: 20
}, ‘gridNode’);

function loadSpecificCustomerIntoGrid(selectedCustomerId) {
// You can refresh a grid by updating the json store behind it
customerJsonStore.fetch({
query: { customer_id: selectedCustomerId },
onComplete: function(items, result) {
// And then calling sort on the grid
customerGrid.sort();
}
});
}
[/code]