I'm trying to refresh data in grid based on search criteria, but don't have correct syntax. Can you provide the correct syntax based on this jsfiddle example? Also, can you point me to any code examples where this type of refresh done?
https://jsfiddle.net/mikepmcg/vz2a6dc7/6/ function refresh() {
var data = [
{ rank: 4, company: 'BP', revenues: '267600.0', profits: '22341.0' },
{ rank: 5, company: 'General Motors', revenues: '192604.0', profits: '-10567.0' },
{ rank: 6, company: 'Chevron', revenues: '189481.0', profits: '14099.0' },
];
objPrj.dataModel = {
data: data,
};
gridPrj.refreshDataAndView()
}