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.
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>
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">