PDA

View Full Version : Remove record from panel grid after load



silvyivy
13 May 2009, 2:00 AM
Hi, I need to remove some record from a panel grid after have loaded it...
e.g. I load record1, record2 ... recordn from a server and I want to remove
ones that have record.name="something".
So, I think :-? I need an "afterload" function or there is something more useful?
anyway,can you give me some example?

Thank you...

Animal
13 May 2009, 2:08 AM
http://extjs.com/deploy/ext-3.0-rc1.1/docs/?class=Ext.data.Store

dawesi
13 May 2009, 2:28 AM
yay.. @Animal... you changed your picture back! lol

@silvyivy why don't you just filter the records using the link @Animal gave above




grid.getStore().filter('name','something',true,true)