EasyUI Forum
September 14, 2025, 12:09:39 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ‘Merge Cells’ paging problem  (Read 11278 times)
gongjw123
Newbie
*
Posts: 7


View Profile
« on: October 12, 2014, 06:35:39 PM »

In datagrid ,when we "merge cells" , how does pagination count the number of merged cells.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 13, 2014, 12:23:56 AM »

You do not describe your question clearly. Please explain it in more detail.
Logged
gongjw123
Newbie
*
Posts: 7


View Profile
« Reply #2 on: October 13, 2014, 06:36:52 PM »

in 'Merge Cells for DataGrid' demo ,  add 'pagination:true,'
<table class="easyui-datagrid" title="Merge Cells for DataGrid" style="width:700px;height:250px"
         data-options="
            rownumbers: true,
            singleSelect: true,
            iconCls: 'icon-save',
            pagination:true,
            url: 'datagrid_data1.json',
            method: 'get',
            onLoadSuccess: onLoadSuccess
         ">
I mean, how does using 'Product' column to pagination instend of rownumbers
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: October 14, 2014, 12:09:43 AM »

Although you call 'mergeCells' method to merge some datagrid cells, the row amount does not decrease. The page count will remain unchanged.
Logged
gongjw123
Newbie
*
Posts: 7


View Profile
« Reply #4 on: October 14, 2014, 07:42:01 PM »

Thanks a lot for your answer!
Maybe I did indeed not describe my question clearly.
Let me describe my question again.
Code:
{"total":28,"group":[
{"name":"ip1","address":"1.1.1.1","prefix":"32","len":"trusted"},
{"name":"ip1","address":"1.1.1.2","prefix":"32","len":"trusted"},
{"name":"ip1","address":"1.1.1.3","prefix":"32","len":"trusted"},
{"name":"ip1","address":"1.1.1.4","prefix":"32","len":"black"},
{"name":"ip2","address":"2.2.2.1","prefix":"32","len":"trusted"},
{"name":"ip2","address":"2.2.2.2","prefix":"32","len":"black"},
{"name":"ip2","address":"2.2.2.3","prefix":"32","len":"trusted"}
]}
I want to show datagrid like ip.jpg using this data format, if i use 'mergeCells datagird', the pagination  is incorrect.
What should I do?
« Last Edit: October 14, 2014, 08:09:54 PM by gongjw123 » 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!