PDA

View Full Version : Why does clearSelection() refreshes other grids?



ntulip
1 Jun 2007, 9:05 AM
In my attempts to (un)select all rows in a GridEditor, the code below will do what it has to do, however, other grids on the page are refreshed. Any ideas?



function toggleRecipientSelection(item,pressed){
if(gridRecipients){
var sm = gridRecipients.getSelectionModel();
if(pressed){
sm.selectAll();
}else{
sm.clearSelections();
}
}
}

jsakalos
1 Jun 2007, 2:47 PM
Where do you call this function from? Aren't other grids by chance links to this one?