Author Topic: Display total records in title bar  (Read 3544 times)

gammax500

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 16
    • View Profile
Display total records in title bar
« on: November 20, 2015, 02:24:00 am »
How do i display the total number of records in the grid title bar?  See screenshots.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Display total records in title bar
« Reply #1 on: November 20, 2015, 02:28:10 pm »
How to get count is already answered here:

http://paramquery.com/forum/index.php?topic=606

To display in the toolbar, use toolbar API:

Code: [Select]
items: [
       { type: "<span class='total_logins'></span> total logins" },

and use jQuery to update it from create event (local data) or load event (remote data) & change event ( if dynamically adding rows ).

Code: [Select]
$('.total_logins').text( count );
« Last Edit: November 20, 2015, 02:30:33 pm by paramquery »