Tuesday, September 26, 2017

Re: Server Side Paging...How to get the totalcount of items?

On Tuesday, 26 September 2017 11:29:45 UTC+1, Rakhee Menon wrote:
Hi ,

I was trying to do server side paging and wanted to send the totalcount of items along with itemPerPage..I have attached my code.Can anyone suggest how to do it??

Thanks in Advance.

Please don't post code as pictures.

The pagination docs list all the attributes of Paginator objects, including `.count` which is described as "The total number of objects, across all pages.". See https://docs.djangoproject.com/en/1.11/topics/pagination/#django.core.paginator.Paginator.count
--
DR. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5e302e30-f525-4e11-8d2f-1efe43f286e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment