Shlomo
Shlomo

Reputation: 3990

ExtJs - getRow by index of Gridpanel

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.

Upvotes: 4

Views: 13903

Answers (1)

Rob
Rob

Reputation: 4947

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..

Upvotes: 5

Related Questions