EasyUI Forum
September 16, 2025, 02:04:32 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: pagination and tabs... on: April 26, 2014, 11:34:31 AM
Could I use datagrid - client side pagination on tabs?   I have used datagrid - client side pagination on other pages and work fine.  This is my first time incorporating datagrid - client side pagination with tabs.   Huh 
2  General Category / EasyUI for jQuery / Re: pagination and tabs... on: April 26, 2014, 09:44:11 AM
Okay, now I can display the data on the second tab but not in the datagrid format.  This is what I get when I hit the second tab:

RepID        TimeStamp        User
100        2014-02-06 15:43:52.0     admin
99         2014-02-06 15:43:52.0     admin
14        2014-01-09 18:43:37.0     admin
13        2014-01-09 17:16:28.0     admin
12        2014-01-09 17:09:33.0     admin
11       2014-01-09 17:09:14.0     admin
10       2013-12-23 16:02:12.0     admin
9       2013-12-23 16:01:54.0     admin
8       2013-12-23 16:01:50.0     admin
7       2013-12-23 16:01:41.0     admin
6       2013-11-07 14:10:30.0    admin
5       2013-11-07 14:10:22.0    admin
4       2013-11-07 14:08:03.0     admin
3       2013-11-07 14:07:56.0    admin
2       2013-10-30 18:34:59.0    admin

The first tab is working fine.
3  General Category / EasyUI for jQuery / Re: pagination and tabs... on: April 26, 2014, 09:13:48 AM
sorry, mean datagrid - client side pagination
4  General Category / EasyUI for jQuery / pagination and tabs... on: April 25, 2014, 07:26:13 PM
Hi!

I'm using tabs and was able to display three tabs without any problems.   Now, I'm trying to add some pagination and it seems to be working fine for the first tab but is not working for the rest of the tabs.  I'm using different IDs and still have issues.  Thank you!

Pseudo Code:
-------------------
<div id="content">
<div style="margin:10px 0;"></div>
<div class="easyui-tabs" style="width:800px;height:270px">
   <div title="All Reports" style="padding:10px">
// pagination works fine here
   </div>
   <div title="Error Free Reports" style="padding:10px">
// pagination is not working
   </div>
   <div title="Reports with PCR errors" style="padding:10px">
// pagination is not working
        </div>
</div>
</div>

5  General Category / EasyUI for jQuery / using client sort on datagrid with pagination on: April 24, 2014, 02:30:03 PM
To Whom It May Concern,

I'm using client sort on datagrid but the results look funny.  Here are the results:

(Sort - Desc)

[First 10 records - Page 1]:
RecID:
--------
99
9
8
7
14
13
12
11
100
10

[Second 10 records - Page 2]:
RecID:
--------
6
5
4
3
2
1

(Sort - Asc)

[First 10 records - Page 1]:
RecID:
--------
10
100
11
12
13
14
7
8
9
99

[Second 10 records - Page 2]:
RecID:
--------
1
2
3
4
5
6

It seems that when it comes to a single digit the logic is fine, but when is more than one digit the logic is acting funny ('fine' in one way but funny).  If I set remoteSort="true" it will automatically sort the information in descending order in both pages, but when I hit the column to sort, it will not sort ascending at all - it will always stay as descending.  Not sure if the problem might be on my sql statement in where I'm group by and sort the results desc.   Comments are welcome!

 Here is the table code:
<table id="dg" class="easyui-datagrid" style="width:755px;height:200px" title="My Data" iconCls="icon-save" pagination="true" pageSize="10" pageList="[10,20,30,40,50]" rownumbers="true" singleSelect="true" striped="true" remoteSort="false" sortName="recid" sortOrder="asc" multipleSort="true">
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!