PDA

View Full Version : [CLOSED] GridPanel : Deselect / clearHighlight selected Row



matrixwebtech
May 19, 2015, 6:00 PM
Hi
in this example (http://mvc2.ext.net/#/GridPanel_ArrayGrid/ArrayWithPaging/) I select 1st row ,now how I deselect that selected row with button click (without click another row ,because in my situation the grid has only one row. )I try


App.Gridtest.getView().clearHighlight(); but not working

Daniil
May 19, 2015, 9:45 PM
Hi @matrixwebtech,

A selection model's
.deselectAll() should do the job.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.selection.Model-method-deselectAll

matrixwebtech
May 20, 2015, 2:59 AM
Sorry I forgot to mention I am not use any SelectionModel ,like this example (http://mvc2.ext.net/#/GridPanel_ArrayGrid/Simple/) please suggest me what I do for this case.

Daniil
May 22, 2015, 7:11 AM
There is a RowSelectionModel used by default even if you don't define it. When you click a row it gets actually selected.

matrixwebtech
May 22, 2015, 7:15 AM
Thanks,
please close this.