EasyUI Forum
June 21, 2024, 01:10:23 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: TreeGrid pagination  (Read 13990 times)
ClSoft
Jr. Member
**
Posts: 92


View Profile
« on: February 03, 2013, 01:35:34 PM »

Hi all
I added pagination in TreeGrid, but not sure how to use "total":xxx,"rows": ?
this is what I try:
Code:

["total":385,"rows":{
"id":"1",
"firstlastname":"xxx",
 ...

I'm using JSON file and looks like pagination inside JSON does not work?
Thanks for suggestions.

Additional, how to call "Processing, please wait" message?
I try to call it "onBeforeLoad" event, but it will not display.
It display only on "reload" event, when data is in grid.
I need to call it before data is added to treegrid, because I need time to fill data. When data is added, I (think) I close it with $('#mytreegrid').treegrid('loaded'); ??
thanks.
« Last Edit: February 03, 2013, 02:15:34 PM by Clarion » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: February 03, 2013, 11:12:57 PM »

Here is the tutorial shows how to add a pagination to treegrid.
http://www.jeasyui.com/tutorial/tree/treegrid4.php
Logged
ClSoft
Jr. Member
**
Posts: 92


View Profile
« Reply #2 on: February 04, 2013, 01:30:54 AM »

Thanks!
any idea of how to use it in JSON? I need to create JSON file instead of using PHP.
Thanks.
Logged
ClSoft
Jr. Member
**
Posts: 92


View Profile
« Reply #3 on: February 05, 2013, 11:15:00 AM »

Please?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #4 on: February 05, 2013, 12:31:00 PM »

What 'json file instead of php' means?
Logged
ClSoft
Jr. Member
**
Posts: 92


View Profile
« Reply #5 on: February 05, 2013, 01:40:14 PM »

hi
it means that I use this:
url="members_tree.json"
instead of
url="somefile.php"

I create "members_tree.json" in external software.
Thanks.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #6 on: February 06, 2013, 08:06:02 PM »

For the client side pagination please refer to http://www.jeasyui.com/demo/main/index.php?plugin=TreeGrid&theme=default&dir=ltr&pitem=Client%20Side%20Pagination.
Logged
ClSoft
Jr. Member
**
Posts: 92


View Profile
« Reply #7 on: February 07, 2013, 12:42:30 AM »

Thanks man!
Logged
AssessySheews
Newbie
*
Posts: 1

248152423 keeripreese@gmail.com
View Profile WWW
« Reply #8 on: February 20, 2013, 06:09:07 AM »

I am currently Developing a php Pagination Script / Class. Does anyone have any good examples of how they do this or a good tutorial to follow which will help me ? I am looking to improve my current script so this will be of use.

Thanks
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!