PDA

View Full Version : Filter causes re-selection



eloyesp
12 Aug 2009, 11:04 AM
I'm doing this with a store:


function actual() {
Far.store.clearFilter(true);
Far.store.each(distancia);
Far.store.sort('dist', 'ASC');
Far.store.filterBy(filtroTurno);
}This store is displayed by a grid with a listener:

Far.grid.getSelectionModel().on({
'rowselect': infoWindow
});When I run actual, infoWindow is played, I don't know why... I thing that when re-drawing the grid, the selected item, get selected again. I there any way to prevent it?

I've tried to use suspendEvent and restoreEvents, but it does not work.
Can anybody help me?

Thanks.

Pd: can anybody explain to me why nobody answer my cuestions... I read the rules and the faq and tried to be polite, but there are few visitors and no answer (there were 2 post only, but is rare...)

olvap
12 Aug 2009, 7:28 PM
Flaco pone todo el codigo o no se entiende nada. Como sabes que "distancia" no llama al "rowselect"?