I have a strange problem.
In my code, I've this lines :
var theId = operation.records[0].get('id');
console.log("theId: " + theId); // print 4 in firebug
var index = gridStore.find('id', theId);
console.log("index: " + index); // print 3 in firebug
if (index != -1) {
gridPanel.getSelectionModel().select(index);
}
The selection doesn't work !
Now, if I change :
var theId = operation.records[0].get('id');
to
var theId = 4;
... the selection works
and :
console.log("theId: " + theId);
print 4 in firebug
console.log("index: " + index);
print 3 in firebug
Why ? the content of theId is always 4 and the content of index is always 3 !!!
Any idea ?
Thanks,
Jean-Michel