View Full Version : grid panel refresh

12 Sep 2011, 12:51 AM
into my GUI i create a GridPanel composed by 4 column.
The first column contains, by default, this div component

<div class="x-grid3-check-col-td loading-indicator"> </div>
and the remaining columns are loaded from a jsonStore.
I've created this method

var startStatusPing = function(value, metadata, record, rowIndex, colIndex, store){
var interval = setInterval(function() {
var conn1 = new Ext.data.Connection();
url: "webSearch",
method: 'POST',
params: 'meth=1&queryId='+record.data.query,
failure: function(response, opts) {
var responseObj = Ext.decode(response.responseText);
Ext.Msg.alert("Notification", responseObj.errorMessage);
conn1.on('requestcomplete', function(a,b,c) {
var responseObj = Ext.decode(b.responseText);
if(responseObj.done=='true') {
var gridSelModel = Ext.getCmp('subMisGrid').getSelectionModel();
var recordSelected = gridSelModel.getSelected();
var newValue = '<div>CHANGED</div>';
recordSelected.set("Status", newValue);
which checks, row by row, the status of a process associated with and at a given time modify the first column's content of the selected row. Then it tries to refresh the grid in order to show the changes, but it doesn't work.
How i can fix this problem?
Thank you.