EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: xnoybx on October 11, 2015, 11:19:50 PM



Title: Merge cell in Datagrid Footer
Post by: xnoybx on October 11, 2015, 11:19:50 PM
This is a repost from topic http://www.jeasyui.com/forum/index.php?topic=3428.0 (http://www.jeasyui.com/forum/index.php?topic=3428.0)

Is the feature has already on Version 1.4.3 ?

Thanks


Title: Re: Merge cell in Datagrid Footer
Post by: jarry on October 12, 2015, 12:02:02 AM
Yes, you can call 'mergeCells' method with the 'type' parameter that tells the method to merge the footer cells.
Code:
$('#dg').datagrid('mergeCells', {
index: 1,
field: 'name',
colspan: 2,
type: 'footer'
});


Title: Re: Merge cell in Datagrid Footer
Post by: xnoybx on October 12, 2015, 10:35:43 PM
Its good. Thanks Jarry.