PDA

View Full Version : set the Title of gridpanel dynamically



barbara1712
9 Nov 2009, 9:50 PM
Hi all,

I am using grid panel. I want to set the title of the grid panel as the total number of records in a data set.


The code is

confirmStore.load({ params:{start:0, limit:pageSize} });
confirmGridPanel.setTitle('Confirming Employees ( '+ confirmStore.getTotalCount() +' )');
confirmGridPanel.render('confirmAlert');But, the title bar is blank.

Could anyone help me out please?
Your help will be highly apprciated.

Thanks,

evant
9 Nov 2009, 10:06 PM
http://www.extjs.com/deploy/dev/docs/?class=Ext.data.Store&member=load

Read the notes there for an explanation.