1. #1
    Ext User
    Join Date
    Mar 2009
    Posts
    14
    Vote Rating
    0
    louiseburg is on a distinguished road

      0  

    Default gridpanel

    gridpanel


    in a grid, when i click, then it is selected. Ok. But while an item is selected,when user press a button on my form, i want to make the grid unselected. I mean none of the items are selected.

    how can i do it?

    by the way, if i reload the grid, none of the items are selected no more but i do not want ot reload.

  2. #2
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    To programmatically select or unselect rows you have to use selection model of the grid. Try the following:
    grid.getSelectionModel().clearSelections();

    See docs for more info:
    Ext.grid.GridPanel.getSelectionModel()
    Ext.grid.RowSelectionModel.clearSelections()

Thread Participants: 1