1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    66
    Vote Rating
    0
    barbara1712 is on a distinguished road

      0  

    Default set the Title of gridpanel dynamically

    set the Title of gridpanel dynamically


    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
    Code:
    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,

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,162
    Vote Rating
    674
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    http://www.extjs.com/deploy/dev/docs...re&member=load

    Read the notes there for an explanation.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1