EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: gongjw123 on October 12, 2014, 06:35:39 PM



Title: ‘Merge Cells’ paging problem
Post by: gongjw123 on October 12, 2014, 06:35:39 PM
In datagrid ,when we "merge cells" , how does pagination count the number of merged cells.


Title: Re: ‘Merge Cells’ paging problem
Post by: stworthy on October 13, 2014, 12:23:56 AM
You do not describe your question clearly. Please explain it in more detail.


Title: Re: ‘Merge Cells’ paging problem
Post by: gongjw123 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


Title: Re: ‘Merge Cells’ paging problem
Post by: stworthy 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.


Title: Re: ‘Merge Cells’ paging problem
Post by: gongjw123 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?