i already try the code, but i have an error message. when i click export to excel, i get an error " 'type' is null or not an object. "

this is my code

bbar: new Ext.PagingToolbar({
...