4
votes

Im using Extjs 4.1 with a gridpanel. Now I want to get a row by id/index to just hide it (not filter).

I tried that (it says there is no method getRow):

gridpanel.getView().getRow( 0 );

What is the correct way now?

I know gridview has getRow, so why cant I use it?

Edit: there seems to be no such method in 4.

1
getRow doesn't exist, you're probably looking for getRecord - Rob
it existed in 3.4. Ill try getRecord - Shlomo
Now i think about it, getRecord will probably return the model instead of the actual row... - Rob
yea how can i select by index (int)? - Shlomo
Hold on, i'm gonna find out - Rob

1 Answers

5
votes

Since ExtJS 4.1.3 no longer returns a GridView you have to work around this.

Take a look at: Sencha Forum --> Getting gridview row element

In my opinion its a ugly solution, but it's not getting alot of attention..