Results 1 to 2 of 2

Thread: gridpanel

  1. #1
    Ext User
    Join Date
    Mar 2009
    Posts
    14
    Vote Rating
    0
      0  

    Default 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
    481
    Vote Rating
    4
      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()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •