The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to pagination grid
#1
Hi Dan,
I would like to know if is possible do pagination in a grip using UserSpice resources.
Thanks
  Reply
#2
I don't have anything, but I'd be interested in adding that feature.
  Reply
#3
Look at my most recent post where I talk about my System Logs section, that has pagnation, if you want I can post the code? Maybe it can be integrated in the future? Not sure if this is what you are looking for or not.
  Reply
#4
Hi Brandin,
Of course, if you can, so, post the code, please.
Everything is welcome.

Thanks
  Reply
#5
Here is your PHP:
https://hastebin.com/axifofequb.sm

Define $countCount by doing your query or whatever your heart desires.

You can also remove the $total_pages = $countCount and define $total_pages directly from your query.

Then echo $pagnation:
Code:
<?php echo $pagination; ?>
  Reply
#6
Hi,
I will study this today and adapt it to my case, really good.
Thank you very much Brandin.
  Reply
#7
You're most welcome! Happy to help!
  Reply
#8
A couple weeks late, but I use a jQuery plugin that does this exact thing and easily allows Ajax calls to update the content. If you're interested you can look at the documentation on this page: http://botmonster.com/jquery-bootpag/
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)