PDA

View Full Version : Ext.append, Ext.removeAll()?



4myGod
29 Sep 2009, 11:32 PM
I can't use .update with a table in IE, so I started using append tr with children td. Now though I want to reset that table to have 0 rows before I put in the new tr's with children td's.

How do I blank out a table? The table equivalent of:

Ext.get('table-id').update('');

Animal
29 Sep 2009, 11:47 PM
Ext.get('table-id').select('/tbody/tr').remove();

4myGod
30 Sep 2009, 12:01 AM
the /tbody/tr selects all table rows and table bodies and removes them?

Animal
30 Sep 2009, 1:04 AM
Read the code. Then refer to the API docs.