Results 1 to 2 of 2

Thread: set the Title of gridpanel dynamically

  1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    66
    Vote Rating
    0
      0  

    Default 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 User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,968
    Vote Rating
    931
      0  

    Default

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

    Read the notes there for an explanation.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •