soma13
5 Nov 2011, 4:57 AM
Hi All,
I have a grid and a want to disable the all selection in it. I do not want to allow users to select any rows or cells and I do not want to recolored rows under mouse pointer.
I try to use grid.getSelectionModel().addSelectionChangedListener, but it not working me :(
grid.getSelectionModel().addSelectionChangedListener( new SelectionChangedListener<BeanModel>()
{
@Override
public void selectionChanged(SelectionChangedEvent<BeanModel> se)
{
se.setCancelled(true);
}
});
It doe not work.
Could you help me?
thx, zappee
I have a grid and a want to disable the all selection in it. I do not want to allow users to select any rows or cells and I do not want to recolored rows under mouse pointer.
I try to use grid.getSelectionModel().addSelectionChangedListener, but it not working me :(
grid.getSelectionModel().addSelectionChangedListener( new SelectionChangedListener<BeanModel>()
{
@Override
public void selectionChanged(SelectionChangedEvent<BeanModel> se)
{
se.setCancelled(true);
}
});
It doe not work.
Could you help me?
thx, zappee